Groups | Blog | Home
all groups > sql server (alternate) > august 2003 >

sql server (alternate) : nubee sql question.



nubee
8/20/2003 12:39:23 AM
I have a table with first_name, last_name, salary, other_columns. I can
produce sql to print the max salary but only with the salary column. How
do I get first_name and last_name etc to show with the max(salary).

Thanks

John Gilson
8/20/2003 1:00:59 AM
[quoted text, click to view]

SELECT *
FROM T
WHERE salary = (SELECT MAX(salary) FROM T)

Regards,
jag

nubee
8/20/2003 1:31:30 AM
Thanks alot John, that's was just what I needed.


[quoted text, click to view]
AddThis Social Bookmark Button