how to find the fifth highest salary?
Answer Posted / saraswathi muthuraman
Try this :
SQL> select * from (select emp_no,dep_no,sal,rank() over
(order by sal desc) as rank_list from emp_test group by
emp_no,dep_no,sal) where rank_list =5;
1005 11 50 5
This seems to be a correct answer if few employ having same sal
Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Are the resulting relations of PRODUCT and JOIN operation the same?
What is Relationship set?
What is database architecture?
What are the the Advantages of DBMS?
Explain about the implementation of stored procedures?
What is DDL Interpreter?
What is 3NF?
What is 5NF?
Can we use commit inside the trigger? If not then how can we save the transaction made by the trigger?
What is "transparent DBMS"?
What is VDL (View Definition Language)?
What is Relationship type?
What is indexing and what are the different kinds of indexing?
Explain the truncate command? : sql server architect
What is difference between 2 tier and 3 tier architecture?