how to find nth highest salary
Answer Posted / kiran k s
select distinct(salary) from table t1
where 4=(select count(distinct(salary))from table t2
where t2.salary >= t1.salary);
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the different index configurations a table can have?
What are relationships and mention different types of relationships in the dbms
What is shrink log file?
What is ms sql server service broker?
What is change tracking in sql server?
what are user defined datatypes and when you should go for them? : Sql server database administration
can an automatic recovery be initiated by a user? : Sql server administration
What is triggers in ms sql server?
Can coalesce return null?
How will you monitor replication latency in transactional replication? : sql server replication
What do you mean by acid?
How do I start sql server agent automatically?
Can a database be shrunk with users active?
Explain the purpose of indexes?
How to identify current user in ssrs report?