write the query for find the top 2 highest salary in sql
server
Answer Posted / ramu
select * from emp e where 2=(select count(sal) from emp
where e.sal<=sal)
| Is This Answer Correct ? | 6 Yes | 6 No |
Post New Answer View All Answers
What are the basic functions for master, msdb, model, tempdb and resource databases?
Do you know sql server 2008 introduces automatic auditing?
What are the types of indexes?
What is sub-query in sql server? Explain its properties.
What are the steps you will take to improve the performance of a poor performing query?
What does COMMIT command do?
What is the log shipping?
Is foreign key unique?
Does hive support indexing?
How to disable a login name in ms sql server?
Tell me what is log shipping?
Which tcp/ip port does the sql server run on? How can it be changed?
What is implicit cursors?
Is sql server a database?
What are the differences between user defined functions and stored procedures?