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
What are page splits? : SQL Server Architecture
What are synonyms?
In which files does sql server actually store data?
How do I view a trc file?
How will you optimize a stored procedure optimization?
How to declare a cursor with "declare ... Cursor" in ms sql server?
What is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure? How many levels of sp nesting are possible?
How do I completely remove sql server instance?
what types of replication are supported in sql server? : Sql server database administration
What do you do in data exploration
How to execute multiple stored procedures at one time in sql server?
Due to some maintenance being done, the sql server on a failover cluster needs to be brought down. How do you bring the sql server down?
What is the difference between update lock and exclusive lock?
What is SQL Azure Data sync?
What are the tool windows in sql server management studio? : sql server management studio