how to find nth highest salary
Answer Posted / elumalai.k
select salary from tablename t1
where n=(select count(*)from tablename t2
where t1.salary<=t2.salary)
| Is This Answer Correct ? | 16 Yes | 16 No |
Post New Answer View All Answers
How to view existing indexes on an given table using sp_help?
Difference between group by clause and having clause in SQL?
How to use values from other tables in update statements in ms sql server?
What is difference between count (*) and count 1?
What is the difference between delete and truncate statements?
How to count rows with the count(*) function in ms sql server?
What is sql view?
can we have a nested transaction? : Sql server database administration
Explain the creation and execution of a user-defined function in the sql server?
what is the sql equivaent of the dataset relation object ?
role of sql sever 2005 in database rather than any other database
How to provide default values to stored procedure parameters?
How to trouble shoot if unable to connect SQL Server
Can we install sql server 2016 on windows 7?
What is check constraint in sql server?