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 14879Post New Ness Technologies SQL PLSQL Interview Questions
What is meant by fm control in a dc chopper?
What are the different technologies involved in establishing wan links?
Explain the difference between univariate, bivariate and multivariate analysis?
In blockchain technology, what does the word “blocks” stand for?
State the various uses of dbcc command?
What Are The Significant Factors To Company Analysis?
What is deplasmolysis of plant cells?
Hai i have completed MBA in HR(major) And Marketing (minor). Now applying FInance if it possible please tell me
What is the most used activation function?
How do I enable the taskbar?
What is the difference between count (*), count (expression), count (distinct expression)?
Can I turn article photos off?
What is the best format to upload a use a good quality image to a website?
How you pass the variable data in program or in code?
i have 3500 amp load and select current transformer and perches.how i calculate .please understand