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 is end user data?
What is database architecture?
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?
What is Relationship type?
What is 5NF?
Are the resulting relations of PRODUCT and JOIN operation the same?
What is DML (Data Manipulation Language)?
What is System R? What are its two major subsystems?
What is Data Independence?
What is temp db database? : sql server architect
What is single tier architecture?
Explain logical database components? : sql server architect
What is the difference between stored procedures and stored functions in oracle?
Describe the three levels of data abstraction?
What is DDL Interpreter?