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 the difference between LENGTH AND SIZE?
What are the 3 levels of data abstraction?
What is indexing and what are the different kinds of indexing?
Explain about recursive stored procedures?
What are the three tiers in a 3 tier architecture?
What is a view? How it is related to data independence?
When is a functional dependency F said to be minimal?
What is degree of Relationship type?
What is Lossless join property?
What is model database? : sql server architect
What is parallel database architecture?
What is the difference between "is" and "as" while creating procedure?
What do you mean by flat file database?
Explain about the process which takes place to execute a stored routine?
What is E-R model?