how to find the second highest salary from emp table?

Answer Posted / raju tt

select max(salary) from employees where salary not in
(select max(salary) from employees)

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to concatenate two character strings? : Sql dba

550


What are sql constraints?

564


Is crud a cuss word?

544


What is rowid in sql?

508


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

575






what is row? : Sql dba

705


What is prepared statement in sql?

543


How is sql used in oracle?

577


What is a data definition language?

554


What are joins in sql?

534


what is the difference between rownum pseudo column and row_number() function? : Sql dba

616


What is inner join in sql?

584


how can we optimize or increase the speed of a mysql select query? : Sql dba

504


What are the different ways to optimize a sql query?

484


How delete all records from table in sql?

548