how to find the second highest salary from emp table?

Answer Posted / velmurugan p

Select min(sal) from table_name where sal in(Select top 2 sal from table_name)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is cursor explain with example?

545


Is left join same as join?

513


What is varray in pl sql?

559


What can sql server reporting services do?

576


Define commit?

538






How can you get sql*loader to commit only at the end of the load file? : aql loader

544


What is the difference between inner join and outer join?

523


How delete all records from table in sql?

548


What is scalar and vector?

521


What is the difference between alter trigger and drop trigger statements?

599


What is loop in pl sql?

565


What are the steps for performance tuning.

833


How do you remove duplicate records from a table?

505


What is difference between ms sql and mysql?

472


What are the different types of functions in sql?

509