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 13042Post New Deloitte SQL PLSQL Interview Questions
How is csrf token generated?
why servomotor motor? where i apply for best output?
In which order, we upload data in salesforce for related objects? : salesforce Data Management
Explain how to rename a table using sql queries?
Which type of variable among global and local, takes precedence over other if names are same?
What is hot backup and logical backup?
Tell us about your oncology experience.
what are all the deliverables of ETL informatica power center project? what are all updated or created by etl developer as his everyday activities?
What are the basics of core java?
Can you explain various data region available in ssrs with their use?
tell me the setting database configuration.
What are the different modes of service invocation?
Is apache still used?
What are the Collection types in Hibernate?
What is the meaning of global employment in sap hcm?