write the query for find the top 2 highest salary in sql
server
Answer Posted / uday
select * from Emp e where 1=(select count(Distinct
d.esal)from emp d where d.esal>e.esal)
i am sure that it should work.
Any thing wrong plz inform me
| Is This Answer Correct ? | 5 Yes | 9 No |
Post New Answer View All Answers
Do you know what are pages and extents? : SQL Server Architecture
How does normalization work?
How to add the custom code in Report?
What is blocking?
How to set the current database in ms sql server?
What is the benefit of normalization?
What is the difference between a view and a stored procedure?
What is failover clustering overview?
What is the command to change the recovery model?
What is the difference between TRUNCATE and DROP?
How real and float literal values are rounded?
How to delete duplicate rows in sql server?
How to replace the Query Result 'Null Value' with a text ?
How to edit table in sql server 2017?
What is meant by indexing files?