Hi, Can anybody please explain me the flow of the below query. I am not able to understand how this query works. This query is for finding the Nth highest salary.. SELECT DISTINCT (a.sal) FROM EMP A WHERE &N = (SELECT COUNT (DISTINCT (b.sal)) FROM EMP B WHERE a.sal<=b.sal); If N = 2 then second highest salary will be the o/p. If N = 3 then third highest salary will be the o/p. and so on.. Thanks, Nitin
5 14877Post New Deloitte SQL PLSQL Interview Questions
Whether use to safe backup log feature in mongodb?
How does human feedback improve AI models?
What is a primary key?
Difference between __str__ and __repr__ in python?
Is unix a coding language?
What happens when submit button is clicked?
What is the java virtual machine (jvm)?
How can you check whether a record is valid record or Invalid record using ADO control or Object?
You need to migrate the ms access database tables to oracle. What steps will you take?
What are diffrent type of road taxes?
Is big data unstructured?
What are the major differences between jmeter and load runner.
When should we use Transactional RFC?
What is the pricing model for sap s/4hana?
What is a producer and a consumer endpoint?