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
What do you mean by atomicity and aggregation?
Explain about recursive stored procedures?
Explain what are the restrictions that views have to follow? : sql server architect
What is Data Model?
Explain about the implementation of stored procedures?
What is Functional Dependency?
What is an Entity?
How many types of stored procedure?
What is VDL (View Definition Language)?
What is durability in DBMS?
What is internal database?
What is System R? What are its two major subsystems?
What is parallel database architecture?
State about the security aspects of stored procedures?
Does storing of data in stored procedures increase the access time? Explain?