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 14716Post New Deloitte SQL PLSQL Interview Questions
Explain about RMI Architecture?
Illustrate physical database architecture in brief? : sql server architect
What are the types of multi-providers?
What are pioneer species?
Can you bootstrap multiple angular applications on same element?
what is the difference between filter and condition?
Explain the difference between a list and array.
Explain the concept of acid properties in dbms?
What is the need for chloroplast and mitochondrial DNA in the plant cell?
Who introduced c#?
What is meta class in python?
Mention some of the important plugins in jenkins?
Mention 5 paramaters that you would consider while searching a candidate for the position of Vice President-Finance/HR for Copal Partners?
Explain the function of a monosaccharide?
Why is standard template library used?