how to find the fifth highest salary?
Answer Posted / chandra shekhar
Assuming that EMP table with Sal column
SELECT MIN(sal) FROM
(SELECT DISTINCT sal FROM emp WHERE
ROWNUM < 6
ORDER BY sal DESC )
- If fifth highest then ROWNUM < 6
- If n'th highest then ROWNUM < n+1
Regards
J
Is This Answer Correct ? | 11 Yes | 5 No |
Post New Answer View All Answers
Describe the three levels of data abstraction?
What are the different phases of transaction?
What is an Entity type?
What is DDL (Data Definition Language)?
What are the the Advantages of DBMS?
State about the security aspects of stored procedures?
What is a business logic layer?
What are the levels of architecture?
What is 4NF?
What are external procedures ? Why and when they are used?
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 durability in DBMS?
What is an Entity?
What is database architecture? : sql server architect