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
Which is super key?
How many types of stored procedure?
what is the difference between LENGTH AND SIZE?
What is raid and what are different types of raid configurations? : sql server architect
What is a Phantom Deadlock?
Brief theory of Network, Hierarchical schemas and their properties
What is DML Compiler?
What is model database? : sql server architect
Does storing of data in stored procedures increase the access time? Explain?
Explain the microsoft sql server delete command? : sql server architect
What is parallel database architecture?
What do data architects do?
What is System R? What are its two major subsystems?
What is Relational Algebra?
What is DDL Interpreter?