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 return statement?
What is 2 tier 3 tier architecture?
What is 2NF?
What is temp db database? : sql server architect
What are the primitive operations common to all record management systems?
State about the security aspects of stored procedures?
What are the levels of architecture?
What do data architects do?
What is the difference between stored procedures and stored functions in oracle?
What is internal database?
can we use transformer in datastage without any input link?
What is a Database system?
What are page splits? : sql server architect
What is "transparent DBMS"?
What is a query?