adspace


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

Answer Posted / arun ashok

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

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is temporary table in sql server? Why we use temp table?

1023


Can we make the the chages By Using the Sql if u know any function or process please inform me Actuall result: BRK1 Break 1 Part 1 00:01:00:00 60 BRK1 Break 1 Part 2 00:01:00:00 60 BRK2 Break 2 Part 1 00:01:00:00 60 BRK2 Break 2 Part 2 00:01:00:00 60 BRK2 Break 2 Part 3 00:01:00:00 60 BRK3 Break 3 Part 1 00:01:00:00 60 BRK3 Break 3 Part 2 00:01:00:00 60 Desired O/P: BRK1 Break 1 Part 1 00:01:00:00 60 Part 2 00:01:00:00 60 BRK2 Break 2 Part 1 00:01:00:00 60 Part 2 00:01:00:00 60 Part 3 00:01:00:00 60

2296


Can we shrink data file in sql server?

1130


What is the difference between upgrade and migration in sql server?

1185


You have a stored procedure, which execute a lengthy batch job. This stored procedure is called from a trigger you do not want to slow the data entry process you do not want trigger to wait for this batch job to finish before it completes itself what you can do to speed up the process?

1216


what is the difference between openrowset and openquery?

1197


Why should you use or avoid select * statements?

1112


What is sql server query analyzer?

1131


How can I check that whether automatic statistic update is enabled or not?

1113


What is sql or structured query language?

1228


How to provide default values to function parameters?

1261


What is a scheduled job or what is a scheduled task?

1040


Where can you add custom error messages to sql server?

1215


How can we solve concurrency problems?

1123


How to remove duplicate rows from table except one?

1091