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 cpu pressure?
How to transfer an existing table from one schema to another schema in ms sql server?
What are the difference between primary keys and foreign keys?
Tell me about builtinadministrator?
how many layers of tcp/ip protocol combined of? : Sql server database administration
How each E-R model constructs can be mapped to the relational model?
Does the unique constraint create an index?
Differentiate between a local and a global temporary table?
Differentiate between ms sql server reporting services vs crystal reports?
Explain how dts is used to extract, transform and consolidate data?
Do you know what is lock escalation?
What are the essential components of sql server service broker?
What is normalization and what are the advantages of it?
Which trace flags are enabled in sql server?
What area unit the various kinds of info compression introduced in sql server 2008?