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
State the different extensions for stored procedures?
What is RDBMS KERNEL?
What are pages and extents? : sql server architect
What is tier in database?
What is raid and what are different types of raid configurations? : sql server architect
What is a Relation Schema and a Relation?
What is DML (Data Manipulation Language)?
What are the primitive operations common to all record management systems?
What is the difference between cube operator and roll up operator? : sql server architect
What is an Entity type?
How is the data structure of System R different from the relational structure?
Can we use commit inside the trigger? If not then how can we save the transaction made by the trigger?
Name the buffer in which all the commands that are typed in are stored
What is Query evaluation engine?
What is system catalog or catalog relation? How is better known as?