how to find nth highest salary
Answer Posted / rabi
SELECT A.SAL
FROM TABLE A WHERE &N=(SELECT COUNT(DISTINCT(B.SAL))
WHERE A.SAL<=B.SAL);
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the bookmark lookup and rid lookup?
What is xml datatype?
How to modify the underlying query of an existing view?
What is the importance of concurrency control?
What is the difference between varchar and nvarchar datatypes?
What is the difference between primary key and unique constraints?
What is the rdl file?
How do I manually uninstall an instance of sql server 2016?
What is the maximum number of instances in 32 bit and 64 bit sql server 2012?
How to find the list of fixed hard drive and free space on server?
How to return the top 5 rows from a select query in ms sql server?
What are partitioned views and distributed partitioned views?
Explain the different types of backups available in sql server? : sql server database administration
How do I determine how many instances of sql server are installed on a computer?
Explain the concept of recursive stored procedure.