how to find the second highest salary from emp table?
Answer Posted / sunil
select top 1 * from emp where sal not in (select max(sal)
from emp) order by sal desc
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
How to take user input in pl sql?
How to load data with sql*loader?
Will truncate release space?
What is the max nvarchar size?
what are the t string functions available in tsql? : Transact sql
What is dbo in sql?
what is top in tsql? : Transact sql
Is it possible to link two groups inside a cross products after the cross products group has been created?
What is a primary key called that is made up of more than one field?
Does oracle roll back the transaction on an error?
What is procedure function?
Is sql a backend?
What is a file delimiter?
What is the use of prepared statement?
Difference between truncate, delete and drop commands?