write the query for find the top 2 highest salary in sql
server
Answer Posted / nilesh
select * from employee2 e where 2=(select count(distinct salary) from employee2
where e.salary<=salary)
Its working.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
How you can move data or databases between servers and databases in sql server?
What is a full text index?
How to update muliple row in single query?
What are the two authentication modes in sql server?
How do I save a stored procedure in sql server?
In which files does sql server actually store data?
What do you understand by intent locks?
How to make a column nullable?
Does sql server 2000 clustering support load balancing?
How many databases can we create in a single server?
How to verify a login name with sqlcmd tool?
Why people hate cursor?
What is the name of the Database which IBM mainframe uses?
What is Lock table in SQL?
What is 2nf example?