Monday, November 9, 2009
How to find nth highest salary from Employee table in SQL Server?
Author: Rajesh Rolen
| Posted at: 8:08 PM |
Filed Under:
Interview Questions
|
SELECT TOP 1 salary FROM (SELECT DISTINCT TOP n salary FROM employee ORDER BY salary DESC) a ORDER BY salary
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment