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
What are the disadvantages of using querystrings to send data from one page to another?
What is sub-query in sql server?
When to use Inner join & when to use subquery?
What is an indice?
Explain the commands in sql server?
what are defaults? Is there a column to which a default can't be bound? : Sql server database administration
Which is the main third-party tool used in sql server?
What is the use of sign function?
Explain trigger and trigger types?
Write a query for primary key constraint with identity key word?
Define synonym?
What is the syntax to execute the sys.dm_db_missing_index_details? : sql server database administration
Do you know what are the properties of the relational tables?
Why truncate is ddl command?
How to provide login information for a new odbc dsn?