how to find the second highest salary from emp table?
Answer Posted / sreekanth
SELECT MIN(SAL)
FROM(SELECT distinct SAL FROM EMP
ORDER BY SAL DESC)
WHERE ROWNUM <= :N
where N is the Nth highest salary u want
| Is This Answer Correct ? | 18 Yes | 22 No |
Post New Answer View All Answers
how to create a new table in mysql? : Sql dba
How do I run a sql trace?
What is normalisation in sql?
what is an alias command? : Sql dba
How subquery works in sql?
Why left join is used in sql?
What information is needed to connect sql*plus an oracle server?
What is difference between mysql and postgresql?
What view means?
What are records give examples?
What is sql constant?
How do I run a pl sql procedure in sql developer?
Is sql scripting language?
What is database sql?
What is the difference between between and in condition operators?