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

Answer Posted / divya

select max(sal) from tablename where sal<(select
max(sal)from tablename)

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the default sql server instance name?

547


What happens if null values are involved in datetime operations?

519


What is a non-clustered index?

548


What is the difference between having clause and where clause in sql server?

560


Explain the Ways to improve the performance of a sql azure database?

60






Explain about extended stored procedure?

477


How to check if a table is being used in sql server?

501


What are various aggregate functions that are available?

492


Can a stored procedure call itself or a recursive stored procedure? How many levels of sp nesting is possible?

569


How to verify a login name with sqlcmd tool?

585


What is index in an assignment?

521


Does view occupy space?

501


Can you roll back the ddl statement in a trigger?

514


What are the approximate numeric data types?

525


Explain DBCC?

558