xpblueScreenOfDeath
Programmer
- Sep 1, 2004
- 87
Dept EmployeeName Score
---- ------------ -----
GH John Smith 56
GH Joe Blow 99
JK Max Brown 78
HJ Sara Ly 34
HJ Larry Smith 3
In a sql query, How do I select an employee with the highest score from each department? Resultset from the above dataset should look like this:
Dept EmployeeName Score
---- ------------ -----
GH Joe Blow 99
JK Max Brown 78
HJ Sara Ly 34
---- ------------ -----
GH John Smith 56
GH Joe Blow 99
JK Max Brown 78
HJ Sara Ly 34
HJ Larry Smith 3
In a sql query, How do I select an employee with the highest score from each department? Resultset from the above dataset should look like this:
Dept EmployeeName Score
---- ------------ -----
GH Joe Blow 99
JK Max Brown 78
HJ Sara Ly 34