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 15069Post New Ness Technologies SQL PLSQL Interview Questions
What is an actual parameter?
what is the theoritical percentage of concrete cubes testing per day?
List down the basic characteristics of cloud computing?
what is a .xap file?
How do I make python scripts executable?
google maps - show in map / show route in customer or vendor card?
How can you connect models to a database manually?
What is the difference between responsibility-driven and data-driven approaches?
What technical support do we get with Delphi?
What does disc error mean?
In Quality Center, If we can reuse a non reusable test script as template test, then what is the need of defining reusable test scripts? What additional functionality does Reusable test scripts add when compared to non reusable test scripts?
What are the different types of data type?
What is the difference between jboss and weblogic?
Do you know what are the ways in which actionscript's code can be protected?
What is Other histogram-based operations?