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
How do you communicate with an RDBMS?
What are the different phases of transaction?
What is Domain-Key Normal Form?
What is app tier?
What is model database? : sql server architect
What is difference between 2 tier and 3 tier architecture?
Explain what are the restrictions that views have to follow? : sql server architect
Name the sub-systems of a RDBMS?
What is a Relation Schema and a Relation?
What is Data Independence?
State the different extensions for stored procedures?
What are the levels of architecture?
What is an Entity set?
How does Tuple-oriented relational calculus differ from domain-oriented relational calculus
What are the unary operations in Relational Algebra?