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 the difference between indexing and hashing?

542


Explain the stored procedure?

633


What structure can you implement for the database to speed up table reads?

706


What is use of except clause? How it differs from not in clause?

596


If a table does not have a unique index, can a cursor be opened on it?

513






Explain different types of lock modes in sql server 2000?

518


Explain the properties of sub-query in sql server?

503


What are examples of triggers?

608


How to create a ddl trigger using "create trigger" statements?

610


How do you delete a trigger?

574


How to receive output values from stored procedures?

477


What are database states in ms sql server?

646


How do I create a partition table in sql server?

488


What is a collation?

589


If we delete pack Spec what will be the status of pack Body ?

966