find the 3rd max salary

Answer Posted / kk

select top 1 * from (
SELECT DISTINCT TOP 3 salary
FROM tblemp
ORDER BY salary desc) t order by salary asc

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to write character string constants or literals in ms sql server?

536


Is it possible to update the views? If yes, how, if not, why?

538


What is server-level principal?

98


How to rebuild master databse?

659


Does partitioning improve performance?

482






What does the on delete cascade option do?

544


Explain query editor regions

612


How many levels of sp nesting are possible?

549


Where do you find the default Index fill factor and how to change it?

597


How do I perform an unattended install of sql server 2000?

596


What are the steps to process a single select statement?

505


What are the five major components of a dbms?

508


Define inner join in sql server joins?

531


Explain the properties of subqueries in sql server?

536


what is the difference between writing data to mirrored drives versus raid5 drives. : Sql server administration

534