write the query for find the top 2 highest salary in sql
server
Answer Posted / srinivas
select e1.sal from emp e1 where 2=(select count(distnct
(e2.sal) from emp e2 where e2.sal>=e1.sal)
| Is This Answer Correct ? | 33 Yes | 32 No |
Post New Answer View All Answers
We need to perform what steps in the following order to work with a cursor?
How to sort query output in descending order in ms sql server?
Which is the best place or learning center for MS SQL?????In Bangladesh?????
What is delete query?
How to create a view with data from multiple tables?
Define cross join in sql server joins?
How to list all login names on the ms sql server?
How do users use Report Builder with SQL Server data sources?
How to find index size for each index on table?
What is the difference between a function and a stored procedure?
How to skip remaining statements in a loop block using continue statements?
How can we check the sql server version?
What is an index in sql?
Explain what is analysis service repository?
What is a full text index?