write the query for find the top 2 highest salary in sql
server
Answer Posted / ranjeet kumar shrivastava
select * from tbl_htl_cntry e where 2>=(select
count(distinct salary) from tbl_htl_cntry where
e.salary<=salary)
it is aslo working syntax.
ranjeetvasu@rediffmail.com
| Is This Answer Correct ? | 10 Yes | 3 No |
Post New Answer View All Answers
Is sql server implemented as a service or an application? : Sql server database administration
What do you know about system database? : SQL Server Architecture
What is the maximum rows in sql server table?
What is a non equi join?
Does sql server 2000 clustering support load balancing?
What's the information that can be stored inside a bit column?
What is instead of dml trigger?
List the data types available in mssql?
What stored by the model?
How can I create a report based on a query? : sql server management studio
What are entities and relationships?
how can you find out if the current user is a member of the specified microsoft® windows nt® group or microsoft sql server™ role? : Sql server administration
What is normalization? Describe its different types.
Explain try...catch with sql server?
What is master database? : SQL Server Architecture