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 14670Post New Ness Technologies SQL PLSQL Interview Questions
What are packages in r?
where can the transformer having vector group Yny0 be used??
What is subtheme?
You have a table with close to 100 million records recently, a huge amount of this data was updated now, various queries against this table have slowed down considerably what is the quickest option to remedy the situation?
You want to link a c++ program to c functions. How would you do it?
How do I charge bank charges on payments to clients
What is difference between @controller and @restcontroller?
How can you setup Database in Django?
Explain the linux ‘cd’ command options along with the description?
What do you understand by unix shell?
Can protocols have properties?
What is a scrollspy plugin in bootstrap?
What do you mean by spring java based configuration?
Which elements of HTML 4.01 are no more a part of HTML5?
What is the current exception in blue prism?