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 14717Post New Deloitte SQL PLSQL Interview Questions
What is the shortcut to merge cells in excel?
What are the cobol coding sheets?
What is web forms in c#?
"In a four-stroke diesel engine, In what engine exhaust valve will open?"
Tell something about history of NABARD?
What are your strengths and weaknesses in sales?
What is application tier?
Which is api based tool supported by salesforce and what are its advantages? : salesforce Data Management
Define subtype ? : abap hr
How to pronounce postgresql?
What is activex installer?
importance of defining tg or tf in selecting master and slave bts's?
What techniques can you give to have a successful business?
Why is there no polymorphic-type response from a create () or find () method?
Can some one please show me the design of a POT Bearing.