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

What's the difference between a primary key and a clustered index?

505


What is union, minus and interact commands?

744


How does stored procedure reduce network traffic?

536


How do you update a sql procedure?

518


What is a file delimiter?

550






What are views in sql?

537


How to combine two stored procedures in sql?

587


What is memory optimized table?

569


What do we need to check in database testing?

550


What is group by in sql?

541


what are all different types of collation sensitivity? : Sql dba

519


What is auto increment in sql?

579


What is the trigger in sql?

531


What is sqlerrm?

540


What is trigger with example?

555