how to find the second highest salary from emp table?
Answer Posted / chiru
select distinct sal from emp e where 2=(select
count(distinct sal) from emp where e1.sal>e.sal) order by
sal desc;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the difference between left outer join and left join?
what is the difference between delete and truncate statement in sql? : Sql dba
Mention what is the use of function "module procedure" in pl/sql?
Which join is like inner join?
Is sql a scripting language?
Show the two pl/sql cursor exceptions.
Define implicit and explicit cursors.
how can we submit a form without a submit button? : Sql dba
What does cursor do in sql?
Mention what are the benefits of pl/sql packages?
Can you selectively load only those records that you need? : aql loader
Why does sql need a server?
what is transaction? : Sql dba
What are the ways on commenting in a pl/sql code?
What is an oracle stored procedure?