how to find the second highest salary from emp table?

Answer Posted / rajesh chauhan

sql>select max(salary)from(select salary from employee where
salary not in(select max(salary)from employee))

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the use of friend function? : Sql dba

543


How to select all records from the table?

612


How to use sql statements in pl/sql?

586


define sql update statement ? : Sql dba

584


How to fetch values from testtable1 that are not in testtable2 without using not keyword?

759






Where the sql database files are stored?

498


How many joins can you have in sql?

527


What are the sql commands?

613


Does access use sql?

565


How is a PL/SQL code compiled?

673


what is a table in a database ? : Sql dba

547


Is it mandatory for the primary key to be given a value when a new record is inserted?

711


Explain the structure of pl/sql in brief.

623


Does sqlite need a server?

543


What is the difference between execution of triggers and stored procedures?

556