how to find nth highest salary
Answer Posted / dinesh
select distinct(a.salary)
from Salarydtls a
where 3= (select distinct(count(b.salary))
from salarydtls b
where a.salary<=b.salary)
ans is for third highest sal
Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
How to change server name in sql server?
What are statistics?
Beginning with sql server version 7 0, a new enhanced data type nchar was added what type of data is supported with this data type?
What is mssql?
What is open database communication (odbc)?
What is merge statement?
What are the rendering extensions of ssrs?
what is normalization? Explain different levels of normalization? : Sql server database administration
What is explicit mode in sql server?
What is a hint?
What is the recovery model?
How many types of stored procedures are there in sql server?
What are the differences between stored procedure and view in sql server?
Explain partitioned view?
What do you understand by a view?