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 14638Post New Ness Technologies SQL PLSQL Interview Questions
What is @html in mvc?
What is biosphere?
What is the difference between sum and count in sql?
What is the standard text?
What is a dbml?
How do you measure the complexity or effort in a sprint? Is there a way to determine and represent it?
When Shares Are Allotted to Shareholders at Par What Entry Will Be Passed?
How do you reverse a list?
journal entry for goods withdrawn for personal use
Why attributes are used in c#?
How do I check cpu usage?
What do you understand by company and company code?
Are you willing to work on your feet for ten hours, four days a week?
What is mark and sweep algorithm?
How to Install uninstall assemblies into GAC?