how to find the second salary?

Answer Posted / raja

select top1 salary from(select distinct top2 salary from
table name order by salary desc)a order by salary

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between count and distinct count?

461


Can another user execute your local temporary stored procedures?

536


How do I run a trace in sql server?

496


How to fetch the next row from a cursor with a "fetch" statement?

580


Does sql server use java?

512






What is the sql server agent?

575


How to find Duplicate Records In table?

579


Can you explain how long are locks retained within the repeatable_read and serializable isolation levels, during a read operation with row-level locking?

521


What are logical database components? : SQL Server Architecture

475


How can I change procedure name in sql server?

533


What is wrong with sql server client libarary dll, ntwdblib.dll?

554


What is the maximum number of index per table?

558


What do you understand by replication in sql server? Mention the different types of replication in sql server.

498


Tell me what are cursors and when they are useful?

506


What is store procedure? When do you use?

520