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 is Query evaluation engine?
Do you know what the restrictions applicable while creating views are? : sql server architect
What are the different phases of transaction?
What is 2NF?
What is SDL (Storage Definition Language)?
What is Data Independence?
What do you mean by atomicity and aggregation?
What is a view? How it is related to data independence?
What are the three levels of database architecture?
What is System R? What are its two major subsystems?
What is a two tier wage system?
can we use transformer in datastage without any input link?
What is one tier architecture?
Where the procedures are stored in database?
What are the primitive operations common to all record management systems?