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.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2006-11-29 : 08:08:32
|
| Ashu writes "I have a table with fields empno,empname,sal,dept .I want to know the records with max salary in each department" |
|
|
ditch
Master Smack Fu Yak Hacker
1466 Posts |
Posted - 2006-11-29 : 08:29:28
|
SELECT dept, MAX(sal) from Table group by deptDuane. |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
|
|
|
|
|