adspace


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

Answer Posted / mahesh

Select max(sal) from emp
where id='1233' and Sal< (select max(sal) from emp)

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 the difference between for xml raw and for xml auto?

1113


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

1132


How can you append an identity column to a temporary table?

1069


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?

1212


What are the different types of subquery?

1233


Why and when do stored procedure recompile?

1056


Explain “row_number()” in sql server with an example?

1078


Equi join and non equi join is possible with sql server?

1134


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

1037


Why we use the openxml clause?

1078


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

1183


Where can you add custom error messages to sql server?

1209


What is acid mean in sql server?

1244


How to remove duplicate rows from table except one?

1087


Why should you use or avoid select * statements?

1108