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
What are cursors? Explain the different types of cursors Enlist a few disadvantages of cursors.
Does dbcc checkdb requires db to be in single_user mode? : sql server database administration
How many partitions a clustered index has by default in sql server 2012?
tell me the disaster recovery plan
Explain for xml explicit mode?
Describe and explain about SQL native client?
How can you manage sql azure security?
How to rename an existing column with the "sp_rename" stored procedure in ms sql server?
What are types of scd? : sql server analysis services, ssas
What happens if you insert a duplicate key for the primary key column in ms sql server?
What is tablesample?
What is cursors? And what are the different types of cursor?
Differentiate between mongodb vs. Sql server?
Do you know what is blocking?
How do you implement session management in SQL Server mode?