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 13203Post New Deloitte SQL PLSQL Interview Questions
How are javascript and ecma script related?
What is the most powerful capabilities of the modelbinder ?
What does protected internal access modifier mean?
What is a nosql database?
How do you add a number to a macro variable? : sas-macro
What is domain parking?
What happen when I import the same module twice in angular 4?
why incomer bay is required before transformer bay if there are more than 1 nos. of transformer bay.
Is php case sensitive?
What is the cut-off rate?
What is the difference between bootstrap 3 and bootstrap 4?
Explain Reliability Mechanisms in JMS?
What is steaming?
What is candidate key ? What is Alter net key ? & What is foreign key ?
what types of security measures are provided with silverlight?