Wednesday, 13 July 2011

Find N’th Highest Salary.......

SELECT salary
FROM employee a
WHERE 3 = (
SELECT count( salary )
FROM employee b
WHERE a.salary <= b.salary )
LIMIT 0 , 30

No comments:

Post a Comment