how to find the second highest salary from emp table?

Answer Posted / sabari

select max(salary ) from emp where salary<(select max
(salary)from emp )

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is partition by in sql?

569


How do sql databases work?

527


Why do we need view in sql?

547


What is difference between cursor and trigger?

551


What is pivot table in sql?

522






How delete all data from table in sql?

568


How many types of literals are available in pl sql?

512


What is the non-clustered index in sql?

587


what is the difference between blob and text? : Sql dba

525


Why is %isopen always false for an implicit cursor?

568


Difference between table function and pipelined function?

583


Can we use join in subquery?

565


What is pl sql block structure?

539


What are the benefits of pl/sql packages?

541


How does cross join work?

502