DOT NET ACADEMY
Dot Net Interview Questions and Tutorials By Dr. Rajesh Rolen
Home
ASP.NET Interview Questions
+
C#.NET and VB.NET Interview Questions
OOPs Interview Questions
+
Friday, October 23, 2009
How to find nth highest salary from Employee table in SQL Server?
SELECT TOP 1 salary FROM (SELECT DISTINCT TOP n salary FROM employee ORDER BY salary DESC) a ORDER BY salary
Share This!
No comments:
Post a Comment
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment