Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Max & mIn

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2006-04-18 : 08:51:13
wijdan writes "Is it possible to find name, max & min salary of different department in organisation without using union clause."

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-04-18 : 08:54:55
Learn SQL
http://www.sql-tutorial.net/
http://www.firstsql.com/tutor.htm
http://www.w3schools.com/sql/default.asp

You will be able to do that

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-04-18 : 08:55:31
[code]select name, min(salary), max(salary)
from yourtable
group by name[/code]



KH


Go to Top of Page
   

- Advertisement -