how to find the second highest salary from emp table?

Answer Posted / subahar

SELECT MAX(average) AS Expr1
FROM sp
WHERE (average NOT IN
(SELECT MAX(average) AS Expr1
FROM sp AS sp_1))

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 null in pl/sql?

618


How do I create an index in word?

535


How many types of primary keys are there?

519


What is assignment operator in pl sql?

558


What are different types of triggers?

548






How do you rank data in sql?

510


Is sql procedural language?

546


What is normalisation in sql?

539


Do we need to create index on primary key?

459


Can we rename a column in the output of sql query?

536


what are the performance and scalability characteristics of mysql? : Sql dba

521


What is function and procedure?

558


What pl/sql package consists of?

628


What is the difference between python and sql?

515


What is a dynamic query?

563