How to read 2nd highest sal from EMP table?

Answer Posted / sasikala

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

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

application server is slow what may be the problem

1782


Differentiate between a primary key and a unique key.

593


Beginning with sql server version 7 0, a new enhanced data type nchar was added what type of data is supported with this data type?

512


What is isnull() operator?

566


Tell me the use of keyword with encryption. Create a store procedure with encryption?

548






What is the difference between Triggers and Stored Procedure?

567


What are the different authentication modes in sql server? How can it be changed?

567


What are system databases into sql server (2005/2008) : sql server database administration

567


How do users use Report Builder with SQL Server data sources?

119


Explain transaction server auto commit?

531


How to bind a view to the schema of the underlying tables?

585


What are number line correlation administrators will use while working with a subquery?

623


Why use triggers?

569


What is not null constraint?

618


How to get a list all databases on the sql server?

579