how to get second highest salary in SQL(as/4000

Answer Posted / premchand

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

Is This Answer Correct ?    34 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are all the different normalizations?

587


What is difference between ms sql and mysql?

474


What are tables and fields?

587


What are system versioned tables?

549


What is the difference between clustered and non-clustered indexes?

601






What does where 1 1 mean in sql?

541


What is the source code of a program?

505


How to place comments in pl/sql?

602


How do you run a query?

587


Why does sql need a server?

562


What is sp_helptext?

590


what is auto increment? : Sql dba

569


what is the difference between delete and truncate commands? : Sql dba

533


How do you select unique values in sql?

499


Show how functions and procedures are called in a pl/sql block.

586