how to find nth highest salary
Answer Posted / satesh naidu
select * from emp e1 where &n=(select count(distinct
(e2.sal) from emp e2 where e.sal>e1.sal)
Hai friends try this.u will get nth highest salary.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do I install only the client tools of sql server 2000?
What method is used by the Command classes to execute SQL statements that return single values?
What are the different types of cursor?
Does the unique constraint create an index?
What are built in functions?
Explain the steps needed to create a scheduled job?
if no size is defined while creating the database, what size will the database have? : Sql server administration
Is sql server is free?
What is data modification?
What do you mean by acid?
What are the built in functions in sql server?
How to define the name and server for a new dsn?
Which are the third-party tools used in sql server and why would you use them?
What are the different types of backups avaialabe in sql server 2005?
Can you type more than one query in the query editor screen at the same time?