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

Answer Posted / sushant hole

select max(salary) from employees where salary<(select max(salary) from
employees);

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between hql and sql?

514


What is the usage of the distinct keyword?

692


How many subqueries can be nested in a statement?

510


How can you know that statistics should be updated?

612


How can you view the errors encountered in a trigger?

552






Which data dictionary views have the information on the triggers that are available in the database?

758


Why sql query is slow?

583


Explain the select statement in sql?

618


What is the difference between a query and a report?

524


what is single byte over head in oracle..?

1874


What are functions in sql?

513


What is not null in sql?

580


what is acid property in database? : Sql dba

564


Differences between Oracle 9i and 10g (Probably in terms of SQL and PL/SQL)?

3114


What is difference between pls_integer and integer?

523