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 15073Post New Ness Technologies SQL PLSQL Interview Questions
How do signed and unsigned numbers affect memory?
What is the difference between del() and remove() methods of the list?
How to change the system date and time from SQL Plus Terminal ?
What is Web service in Blue Prism?
Can a filed occur in several field groups? : abap modularization
what is zuul in spring boot? : Spring Boot
please send me privious exam's queation papers of section engineer(electrical).
why metadb requires a seperate slice to create Solaris volume manager
What are the types of users in business objects?
what is journal import?
Mention what is the meaning of broker in kafka?
What does angie mean?
What are the key functions you can perform under forecasting & replenishment process?
How to create sub reports?
What is your style of management