can anybody tell us, how to select 2nd max salary from
table.
my id is ashish.akk@gmail.com

Answer Posted / harikumar

select max(salary) as secondMax from employee where salary
<> (select max(salary) from employee)

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 primary key index?

528


Can we run Reporting Services with SQL Server express edition, which is a free version of SQL Server?

78


How real and float literal values are rounded?

576


What is the library index called?

578


How does recursive cte works in sql server?

515






What are the recovery models for a database?

609


What is the default sql server instance name?

554


How to send email from database?

568


what are different types of backups available in sql server? Given a particular scenario, how would you go about choosing a backup plan? : Sql server database administration

508


How to assign new column names in a view?

501


what is the maximum size of a row? : Sql server database administration

524


Explain partitioned view?

581


What is local temp table?

543


When I delete any data from a table, does the sql server reduce the size of that table?

573


How to provide column names in insert statements in ms sql server?

598