how to find the second highest salary from emp table?

Answer Posted / gaurav singh 'viccky'

select salary from user=(select max(salary)from user where
salary < (select max(salary)from user))

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can variables be used in sql statements?

554


What do you mean by dbms? What are its different types?

557


Explain the savepoint statement.

604


How to avoid using cursors?

599


How will you distinguish a global variable with a local variable in pl/sql?

626






Is left join same as join?

524


List the ways to get the count of records in a table?

512


Is pl sql different from sql?

536


Which is better join or inner query?

522


explain the difference between delete , truncate and drop commands? : Sql dba

553


When you have to use a default "rollback to" savepoint of plvlog?

728


How are sql commands classified?

597


Can delete statement be rollbacked?

529


What are the main features of cursor?

631


What is materialized view in sql?

469