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
Can a table have no primary key?
What is trigger point?
What is rename command in sql?
What found sql?
What is rank dense_rank and partition in sql?
Explian rowid, rownum?
What are different types of tables in sql?
what is the different between now() and current_date()? : Sql dba
When should I use nosql database?
Is it possible to read/write files to-and-from PL/SQL?
What is a relationship and what are they?
How can get second highest salary in sql?
What is a natural join sql?
Write the command to remove all players named sachin from the players table.
What is a data definition language?