write the query for find the top 2 highest salary in sql
server
Answer Posted / sivashankar.soma
select ename,sal from emp E where 1=(select count(*) from
emp where E.sal<sal)
| Is This Answer Correct ? | 16 Yes | 29 No |
Post New Answer View All Answers
How to receive output values from stored procedures?
what are the different types of replication you can set up in sql server? : Sql server database administration
How to get the definition of a user defined function back?
How would you add a section to a table?
what are statistics, under what circumstances they go out of date, how do you update them? : Sql server database administration
How will you decide the active and passive nodes?
On a windows server 2003 active – passive failover cluster, how do you find the node which is active?
What is @@rowcount in sql?
What is query cost in sql server?
Why can there be only one clustered index and not more than one?
What is the difference between mysql and sql server?
Explain trigger and its types?
Can coalesce return null?
application server is slow what may be the problem
How to insert multiple rows with one insert statement in ms sql server?