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 14868Post New Ness Technologies SQL PLSQL Interview Questions
How to convert one date format into another in php?
How do you insert a footnote in word on a mac?
What is the full form of ppt?
What is the importance of quant number ?
Does apache need java?
What is Agile Methodology
What are the advantages of python?
What are different types of pointers?
What is server side programming language?
Tell me what is the contestable period' in insurance policy? : insurance sales
What is the use of substring command?
Can I install stock android on any phone?
What is the difference between plan and package in db2?
why sawtooth waveform is used in thyrisrot triggring circuit
Define python binder?