Write a query to find second highest salary of an employee.
Answer Posted / preetir
select min(sal) from (select distinct sal from emp order by
desc where rownum < 2)
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
How is pl sql different from sql?
what is the different between now() and current_date()? : Sql dba
Is sql between inclusive?
How to raise user-defined exception with custom sqlerrm ?
How to Declare Fixed Length String Value In PL SQL
what are integrity rules?
In what condition is it good to disable a trigger?
what is a constraint? : Sql dba
What is a database? Explain
How can get second highest salary in sql?
what are myisam tables? : Sql dba
What is the difference between cross join and natural join?
What is the use of primary key?
What is hibernate and its relation to sql?
What is the cause of mutating table error and how can we solve it?