Write a query to find second highest salary of an employee.

Answer Posted / cooldude

select max(sal) from Emp where sal < (select max(sal) from
Emp)

Is This Answer Correct ?    14 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I trace sql profiler?

491


What is the most important ddl statements in sql are?

519


Why do we create views in sql?

551


Should I use mbr or gpt?

544


What do you think about pl/sql?

529






what is the difference between ereg_replace() and eregi_replace()? : Sql dba

552


Mention what plvcmt and plvrb does in pl/sql?

636


Advantages and disadvantages of stored procedure?

578


Differentiate pl/sql and sql?

559


Name the different types of indexes in sql and define them.

568


How many postgresql users are there, worldwide?

578


What is character functions?

555


Which is better varchar or nvarchar?

546


what is 'mysqlshow'? : Sql dba

583


What port does sql server use?

504