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
Explain about the implementation of business logic in stored procedures?
Not only RDBMS takes care of locating data it also
What is difference between 2 tier and 3 tier architecture?
What are the levels of architecture?
What is a Phantom Deadlock?
What are the 3 levels of data abstraction?
What is database architecture? : sql server architect
What is Relationship set?
can we use transformer in datastage without any input link?
What do you mean by Correlated subquery?
Explain what are the database objects? : sql server architect
How is the data structure of System R different from the relational structure?
What do you know about system database? : sql server architect
in oracle BPM composer in part BA model on design model in enterprise model i cannot connection with value chain model work not links in part properties do you can me help me?
Do you know what the restrictions applicable while creating views are? : sql server architect