how to find the fifth highest salary?
Answer Posted / saraswathi muthuraman
SQL> select * from emp_test order by sal desc;
1003 20010 11
1001 10000 11
1001 10000 11
1002 100 11
1004 99 11
1005 50 11
1006 25 11
SQL> select * from (select emp_no,dep_no,sal,rank() over
(order by sal desc) as rank_list from emp_test) where
rank_list =5;
1004 11 99 5
| Is This Answer Correct ? | 5 Yes | 5 No |
Post New Answer View All Answers
What is Functional Dependency?
What are the primitive operations common to all record management systems?
What is Relational Algebra?
What is the job of the information stored in data-dictionary?
Which part of the RDBMS takes care of the data dictionary? How
What do you mean by flat file database?
What is 2 tier 3 tier architecture?
What is degree of Relationship type?
Illustrate physical database architecture in brief? : sql server architect
What is an Entity type?
What is the difference between a user defined function and a stored procedure?
What is database architecture? : sql server architect
What is E-R model?
What is DDL (Data Definition Language)?
What are the the Advantages of DBMS?