how to find the second highest salary from emp table?

Answer Posted / arvind

select max(salary) from table_name where sal<(select
max(salary) from table_name)

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I start sql profiler?

561


What is the difference between numeric and autonumber?

502


What is inner join in sql?

586


Explain the order of sql statement execution?

615


How does a trigger work?

539






What is localdb mssqllocaldb?

623


How can you tell the difference between an index and a view?

494


What is view? Can we update view

867


What are properties of the transaction?

561


What is the difference between sum and count in sql?

528


Is like operator in sql case sensitive?

510


What are the different types of constraints?

566


Which is better trigger or stored procedure?

502


What is the current version of postgresql?

560


What are %type and %rowtype for?

619