write the query for find the top 2 highest salary in sql
server
Answer Posted / karan
select empname,sal from empdpt e where 1=(select count(*) from
empdpt where e.sal<sal)
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
How to create a local temporary stored procedure?
How to stop a loop early with break statements in ms sql server?
What is meant by referential integrity?
what is the difference between delete table and truncate table commands? : Sql server database administration
What is a with(nolock)?
Does sql server 2000 clustering support load balancing?
What is log shipping?
What are the requirements on sql server network connections?
What is similarity and difference between truncate and delete in sql?
How to disable triggers using "disable trigger"?
How to copy data from one table to another table?
If a stored procedure is taking a table data type, how it looks?
What number sorts of privileges are accessible in sql?
How does index makes search faster?
Explain the relational database management system (rdbms)?