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 14638Post New Deloitte SQL PLSQL Interview Questions
What is the use session in php?
What is nav in html?
how can administrator assign java ee 5 security permissions to actual users in websphere application server?
What is meant by analogous system?
What is a context? : bo designer
How do I get rid of spoolsv exe virus?
How do you insert a word document into another word document with formatting?
insurance domain interview questions ,i done project on insurance (manual testing)
Tell me one scenario, the complex functionality you have automated in your project?
What is composer phar?
What is Isodata algorithm?
What is bispecific antibody?
What is the relationship existing between the various data elements? : abap data dictionary
What are the steps for creating clr trigger
What is data source in connection string?