how to find nth highest salary
Answer Posted / sitakanta rath
SELECT sal FROM
(
SELECT DENSE_RANK() OVER (ORDER BY sal DESC) AS rank, sal
FROM Emp
) T2
WHERE rank=@n
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
How can a database be repaired?
How much memory that we are using in Logshipping Concept?
What is the default schema of your login session in ms sql server?
Stored Procedure returns data from multiple tables. How to access it in your ASP.Net code?
What does nvl stand for?
What are “phantom rows”?
What are the advantages of user-defined functions over stored procedures in sql server?
Do you know what are pages and extents? : SQL Server Architecture
How to reaname table name without using sp_Rename in sql server..?
What do you understand by replication in sql server? Mention the different types of replication in sql server.
How to assign new column names in a view?
What the different components of Replication and what is their use?
In which files does sql server actually store data?
Is it possible to import data directly from t-sql commands without using sql server integration services? If so, what are the commands?
How would you add a section to a table?