how to find the second highest salary from emp table?

Answer Posted / winnie

select max(sal) from emp
where sal not in (select max(sal) from emp )

Is This Answer Correct ?    1090 Yes 131 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does sql profiler work?

566


What is a left join?

507


What are types of joins?

532


what are local and global variables and their differences? : Sql dba

532


Which join condition can be specified using on clause?

512






Why we use triggers in mysql?

557


What is pivot query?

591


what is the use of friend function? : Sql dba

538


What is a temporal table?

490


how can we transpose a table using sql (changing rows to column or vice-versa) ? : Sql dba

502


How many indexes can be created on a table in sql?

494


What do you mean by rowid?

538


Can we insert in sql function?

537


How do I view tables in sql developer?

510


Does varchar need length?

516