how to find the second highest salary from emp table?

Answer Posted / prashanth

select max(sal) from employee where sal<(select max(sal)
from employee)

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between joins and union?

535


What is the difference between joins?

539


How do you sort in sql?

608


What is restrict in sql?

561


How can we debug in PL/SQL?

663






What does where 1/2 mean in sql?

540


How do I clear the screen in sql plus?

553


What is the difference between drop and truncate commands?

492


How would you convert date into julian date format?

594


How to run pl/sql statements in sql*plus?

594


What mean sql?

585


Is left join inner or outer?

591


What does := mean in pl sql?

559


How do I view a table in sql?

547


Can we create view in stored procedure?

526