how to find nth highest salary
Answer Posted / rabi
SELECT A.SAL
FROM TABLE A WHERE &N=(SELECT COUNT(DISTINCT(B.SAL))
WHERE A.SAL<=B.SAL);
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the difference between delete and truncate statements?
How to add more data to the testing table in ms sql server?
Explain the steps to use transact-sql cursor?
What is sub query and its properties?
What’s the use of custom fields in report?
What is always encrypted?
Where views are stored in sql server?
What is nested transaction?
What do you understand by replication in sql server?
As per your opinion what are the five top responsibilities of a dba? : sql server database administration
What is data modeling and Reterminal integrity?
What is acid mean in sql server?
Explain boyce and codd normal form(bcnf)?
How can a database be repaired?
How to insert data with null values?