Write a query to get 2nd maximum salary in an employee table ?

Answer Posted / nagarjuna.reddy

select max(sal) from emp where sal <> (select max(Sal) from
emp)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the working of primary key?

614


How do you modify a trigger?

530


Does mysql_real_escape_string prevent sql injection?

539


Why do we need view in sql?

553


What is primary key in db?

523






what is the command used to fetch first 5 characters of the string? : Sql dba

1139


What are the most important ddl statements in sql?

579


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

556


What is materialized view in sql?

469


What are schema-level triggers?

585


Which is better join or subquery?

608


how to get a list of indexes of an existing table? : Sql dba

518


What is function and procedure?

569


Why we use triggers in mysql?

560


What is normalization sql?

513