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
What are inbuilt functions in sql?
What is coalesce in sql?
What is autocommit sql?
how to rename an existing table in mysql? : Sql dba
How delete all data from all tables in sql?
Does execute immediate commit?
how to select first 5 records from a table? : Sql dba
How can use stored procedures in sql?
What are predefined functions in sql?
list out some tools through which we can draw e-r diagrams for mysql. : Sql dba
what are integrity rules?
What is the difference between inner join and left join?
What is %rowtype in pl sql?
What is sorting in sql?
what is a control file ? : Sql dba