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

Answer Posted / selvaraj.v

In SQL Server 2000 Query:
-------------------------

select max(salary) from Employee where salary not in(select
max(salary) from employee)

This Query only selects the 2'nd Higehest Salary in that
table. So, you will try...

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When would you use an insert into .. Select option versus an insert into .. Values option? Give an example of each?

862


Explain triggers?

759


How to replace the Query Result 'Null Value' with a text ?

766


What are locks in sql?

710


How is SQL Azure different than SQL server?

116






What is sql server programming?

761


What program is used to store the data source file?

675


What is the difference between stored procedure and user defined functions?

856


what happens on checkpoint? : Sql server database administration

700


What is sharding?

103


What is a view in sql?

758


What are xml indexes?

699


Can I delete event logs?

705


What do you understand by hotfixes and patches in sql server?

693


How can I add Reporting Services reports to my application?

105