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

What is the meaning of lock escalation and why/how to stop this? : sql server database administration

604


How to start sql server browser service?

561


Give a example to search fr a string in all stored procedure in sql server.

534


Where is localdb stored?

561


List the different normalization forms?

542






How can a user-defined datatype be created?

544


Why I have to use stored procedures?

598


What is the meaning of resultset type_scroll_insensitive?

565


How ssrs maintain security?

583


What are joins in sql and what are the different types of joins?

551


Explain unique key in sql server?

540


Are connections to sql server encrypted?

578


What is exclusive locks?

537


What is the difference between sdf and mdf?

679


How to delete duplicate rows from table except one?

545