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 unary operations in Relational Algebra?
What are the primitive operations common to all record management systems?
What is master database? : sql server architect
What is database architecture?
Explain about the return statement?
What is parallel database architecture?
What is E-R model?
What is tier in database?
How can we call stored procedures inside store procedures?
What is a checkpoint and When does it occur?
Describe the three levels of data abstraction?
What is the difference between a user defined function and a stored procedure?
Name the buffer in which all the commands that are typed in are stored
What do you mean by atomicity and aggregation?
What is system catalog or catalog relation? How is better known as?