how to find nth highest salary
Answer Posted / mangalesh porwal
HERE N IS THE NO WHICH HIGHEST NO U WANT..........
IT SURELY WORKS.....
SELECT TOP 1 * FROM (SELECT TOP N * FROM (SELECT ROLLNO FROM TABLE_NM ) AS D ORDER BY ROLLNO DESC) AS P ORDER BY ROLLNO
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is stored in the mssqlsystemresource database? : sql server database administration
What is oltp (online transaction processing)?
How to use "begin ... End" statement structures in ms sql server?
Explain in brief about Microsoft SQL server?
What is subquery explain with example?
how would you troubleshoot blocking? : Sql server database administration
What is extent? Types of extents?
What is global temp table?
How to create a new login name in ms sql server?
Difference between primary key and clustered index?
How to update multiple rows with one update statement in ms sql server?
What is the difference between mysql and sql server?
What are the various Operating system files that every SQL server 2005 database has and what is the purpose.
is there a column to which a default can't be bound? : Sql server database administration
Is it ok to shrink transaction log?