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
Explain about the implementation of business logic in stored procedures?
What do you mean by atomicity and aggregation?
what is the difference between LENGTH AND SIZE?
Explain what are the restrictions that views have to follow? : sql server architect
What is a view? How it is related to data independence?
Explain what are the database objects? : sql server architect
can we use transformer in datastage without any input link?
What is database architecture? : sql server architect
What is Relationship type?
What is E-R model?
What is a Relation Schema and a Relation?
What is Functional Dependency?
What is DML Compiler?
Describe the three levels of data abstraction?
What is the difference between "is" and "as" while creating procedure?