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 are pages and extents? : sql server architect
What is the Disadvantage in File Processing System?
What is tier in database?
How can we call stored procedures inside store procedures?
What is database architecture? : sql server architect
What is Relational Calculus?
What is end user data?
What do you mean by flat file database?
Not only RDBMS takes care of locating data it also
What is DDL (Data Definition Language)?
What is a query?
What is an Extension of entity type?
What are the unary operations in Relational Algebra?
What is a view? How it is related to data independence?
What is difference between two tier and three tier?