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


Please Help Members By Posting Answers For Below Questions

What is a result set object returned by mssql_query()?

563


1)what is the difference between Reinitializing a Subscription and synchronization the subscription? 2)when to use reinitializing ? 3)when to use synchronization? 4)when adding table or deleting a table what to do?(reinz.. or syn) 5)when adding a column what to do?

1520


What is a linked server in sql server?

564


How to enter unicode character string literals in ms sql server?

561


Does the unique constraint create an index?

551






How to create an multi-statement table-valued function?

517


What is @@error in sql?

614


What is the default Port No on which SQL Server listens?

609


What is the difference between Stored Procedures and triggers?

559


What is inline table-value user-defined function?

576


How can we improve performance by using SQL Server profiler?

563


What are indexers?

611


When do you think a developer should use sql server-based cursors?

510


How to display a past time in days, hours and minutes?

557


How to convert character strings into numeric values?

561