how to calcuate the second highest salary of he employee

Answer Posted / vinayak jamdar

Select top 1 empid,salary from (select distinct top 2
empid,salary from emp order by salary desc)a order by salary

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a temp table?

561


What is pl/sql language case sensitive?

629


What is delimiter sql?

539


Is primary key is clustered index?

525


What does select top 1 do in sql?

534






define sql insert statement ? : Sql dba

546


Can we change the table name in sql?

527


What is over () in sql?

521


What are the various levels of constraints?

656


Does oracle roll back the transaction on an error?

527


What is database white box testing and black box testing?

630


What is vector point function?

560


What is sqlcommand?

546


Why use triggers in sql?

489


What are the different sql commands?

507