how to find the second highest salary from emp table?

Answer Posted / bharat puri

select top 2 (salary) from emp
order by salary desc

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we avoid duplicating records in a query?

576


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

557


What are the triggers associated with image items?

629


How to disable a trigger name update_salary?

686


Which type of cursor is used to execute the dml statement?

540






What are the constraints available in sql?

591


How do you write a complex sql query?

598


How much does a sql dba make? : SQL DBA

523


How can I make sql query run faster?

568


Explain the difference between triggers and constraints?

534


what are the disadvantages of mysql? : Sql dba

582


Is nosql relational?

553


What are the various levels of constraints?

676


How do you break a loop in pl sql?

533


Why is theta join required?

675