how to find the second highest salary from emp table?

Answer Posted / subrat

SELECT MAX(Sal) FROM EMP WHERE Sal < (SELECT MAX(Sal) FROM EMP)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a database event trigger?

595


does sql support programming? : Sql dba

611


Explain the components of sql?

589


State few characteristics of pl/sql?

565


How to find 3rd highest salary of an employee from the employee table in sql?

567






Why do we use joins in sql?

500


What does partition by mean in sql?

515


what is cross join? : Sql dba

572


What are the types of variables use in pl sql?

507


How to place comments in pl/sql?

602


How to install oracle sql developer?

567


What has stored procedures in sql and how we can use it?

565


what is a trigger in mysql? : Sql dba

603


What is the meaning of disabling a trigger?

647


How is indexing done in search engines?

531