how to find nth highest salary
Answer Posted / dilip
SELECT MIN(SALARY) FROM tablealies.Table_Name WHERE SALARY
IN (SELECT DISTINCT TOP N MAX(SALARY) FROM
tablealies.Table_Name ORDER BY SALARY DESC)
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
Define model database?
How to create a login account in ms sql server to access the database engine using "create login" statements?
Can a cursor be updated? If yes, how you can protect which columns are updated?
Hi all, can any one please tell me the difference between sql server 2008 and orace 9i
What is service broker?
What is tablix?
How would you use user_constraints table in DB?
Tell me about the approaches which you used to counter the DI problems.
What is the xml datatype?
How to rebuild indexes with alter index ... Rebuild?
How to test subquery results with the exists operator?
What is difference between inner join and join?
What is a covered index?
How to delete an existing row with delete statements in ms sql server?
What are the different types of replication are there in sql server 2000?