how to find the second highest salary from emp table?

Answer Posted / jat16may

SELECT MAX(SALARY) FROM TABLENAME WHERE SALARY<(SELECT
MAX(SALARY) FROM TABLE NAME

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of stored procedures?

513


what are the disadvantages of mysql? : Sql dba

565


How do you update sql?

516


Which are the different character-manipulation functions in sql?

542


What steps server process has to take to execute an update statement?

504






How delete a row in sql?

526


Can dml statements be used in pl/sql?

569


Does truncate require commit?

537


What are the different types of functions in sql?

509


Why commit is not used in triggers?

572


How many types of functions are there in sql?

496


Which column of the user triggers data dictionary view displays the database event that will fire the trigger?

591


What is composite data type in pl sql?

552


How many types of indexes are there in sql?

533


What is dynamic sql in pl sql?

487