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
What are the three levels of database architecture?
What is the difference between a user defined function and a stored procedure?
What are the three tiers in a 3 tier architecture?
What is 2 tier 3 tier architecture?
What is temp db database? : sql server architect
What is Data Independence?
What is Multivalued dependency?
What is Relationship set?
Define the "integrity rules"?
What is n tier architecture with example?
What is single tier architecture?
What is DML (Data Manipulation Language)?
What is an Entity type?
What is the difference between layer and tier?
What is an Entity set?