what are sequences
No Answer is Posted For this Question
Be the First to Post Answer
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 Answers Deloitte, Ness Technologies,
What are local and global Indexes and where they are useful.
If a View on a single base table is manipulated will the changes be reflected on the base table?
What is sql basics?
What is a dirty read sql?
Is it possible to remove child records without removing master table records...the two having pk,fk relationship?
How many levels can subqueries be nested in a FROM clause?
How to remove duplicate rows from a table?.
how can i read write files from pl/sql
Is sql a dbms?
How to revise and re-run the last sql command?
Can we insert in view in sql?