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 14699Post New Ness Technologies SQL PLSQL Interview Questions
How do I split a word table into two?
diff between manual payment and quick payment?
solar cooker based on the principle
What is the Current Status of Clipper ?
can you explain the difference between readfile vs createreadstream in nodejs.
How to use QTP Object in .vbs(vbscript file) file Ex: Browser().., wait(), exist() and etc...
What are the different http methods?
What do you mean by public protected and private in c++?
What does the language of fopl consist of?
What is binding and how many types of bindings are there in wcf?
Explain how to use built-in messaging within the application?
How to use sql statements in pl/sql?
What is @controller annotation in spring?
How many tabs can you have in excel 2016?
How can we do server-side rendering in React?