how to find nth highest salary

Answer Posted / saurabh

select max(salary) from Employee where salary not in (
select top 5 Salary from ( select distinct Salary from
Employee order by Salary desc))

Is This Answer Correct ?    0 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sql or structured query language?

683


Explain about remote stored procedure?

593


What is inline table-value user-defined function?

594


How global temporary tables are represented and its scope?

551


what number files will a information contain in SQL Server? How many forms of information files exist in SQL Server? How many of those files can exist for a single database?

532






Explain the disadvantages of cursors?

590


Other than truncate statement, which other command can by-pass the trigger on the tables?

620


How we create SQL Server 2005 Reporting Services ? Give me Sample

1573


Can you force a query to use a specific index?

531


How many files can a database contain in sql server?how many types of data files exists in sql server? How many of those files can exist for a single database?

641


What is the use of keyword with encryption. Create a store procedure with encryption?

585


Do you know what guidelines should be followed to help minimize deadlocks?

536


What is a filestream?

557


How do I find the query plan in sql server?

545


How to find the version of sql server? : sql server database administration

627