how to find nth highest salary

Answer Posted / nidhish

replace the N with wat ever number u want

select min(salary) from employee where salary in ( select
distinct top N salary from employee order by salary desc)

Is This Answer Correct ?    26 Yes 17 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is raid and what are different types of raid levels?

611


What are the different normalization forms?

716


What is extended stored procedures?

641


Hi all, can any one please tell me the difference between sql server 2008 and orace 9i

1626


Is there any difference between the primary key and unique key?

668






What are page splits?

670


Explain having clause and where clause?

706


What is serializable?

748


How to change the data type of an existing column with "alter table" statements in ms sql server?

620


How to get a list of columns in a view using the "sp_columns" stored procedure?

703


How to set database to be single_user in ms sql server?

656


How to enter comments in transact-sql statements?

642


What is the use of keyword with encryption.

689


What is a trace frag?

743


What is ssrs?

101