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 13774Post New Ness Technologies SQL PLSQL Interview Questions
What are two dimensional arrays alternatively called as?
What are the benefits of dependency injection?
i am working with NBFC- MNC in personal loan dept. I applied for Internal Job Position in banking Division. My overall (10 years) experience in sales and People Management and in Internal Job Posting they require person for backend activity. There will be not repotees and its individual performance job. My Question is 1. If they will ask why you want to change your field form sales to backend job what should I answer? 2. The opening is in Chennai and since 10 year I am in Gujarat so if they ask why you want to change your home town location? Arpan Thakkar
What sales experience do you have? : insurance cold calling
What is difference between hql and sql?
Define what is error handling and define how do you do error handling?
How to backup a drupal site?
What is code reusability in c++?
Is cmake only for c++?
Tell me something about Base Rate?
What factors are involved in determining the electrophoretic mobility of a molecule?
What is payment/receipt/period accruals?
what are the six different type of argument values in cobol that can be placed in various options of a cics command?
Explain the flow of messages in biztalk server engine?
What is a treemap used for?