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 13693Post New Ness Technologies SQL PLSQL Interview Questions
What are the Types Of Splunk Forwarder?
What are the events in abap/4 language? : abap hr
What is the scope of a content type?
Explain what is tableau data extract?
What does f6 key do?
What is the message server in mqseries?
You have a bag with 6 marbles. One marble is white. You reach the bag 100 times. After taking out a marble, it is placed back in the bag. What is the probability of drawing a white marble at least once?
Can I use openjdk for commercial?
How can you merge two data frames in R language?
How many types of actions are there in quicktest professional (qtp)?
What does noconcatenate do?
How many ways to create array in kotlin?
What is the difference between Hadoop and RDBMS?
What does ctrl r do?
What is the unit of font size in ms word?