write the query for find the top 2 highest salary in sql
server
Answer Posted / krishna
select * from emp e where 2>(select count(esal) from emp
where e.esal<=esal)
| Is This Answer Correct ? | 3 Yes | 7 No |
Post New Answer View All Answers
How do I view a stored procedure in sql server?
What is use of attribute hierarchy optimized state? : sql server analysis services, ssas
How to delete duplicate records based on single column from a table?
How do you start single user mode in clustered installations?
What are different types of statement?
How to find index size for each index on table?
1. Tell me your daily activities 2. If sql server installation fails at time installation what will do 3. Where does the sql server installation log details are stored 4. After the installation what will you do for memory configuration 5. What is the difference between SQL max maximum memory and AWE memory 6. How will you configure AWE memory 7. How will setup an email alert for the backup job 8. After the SQL installation what are the jobs will you configure 9. What does –g mean in the sql startup parameter 10. What is the difference between Bulked log and Full recovery model 11. What is the difference between mirroring and log shipping 12. What are the steps to be followed before in-place up gradation 13. After installing the patch the sql server does not start and application team tells to rollback the changes .In this scenario what will you do
How to find the login name linked to a given user name?
Explain aggregate functions?
what is the different types of backups available in sql server? : Sql server database administration
what changed between the previous version of sql server and the current version? : Sql server database administration
What happens on checkpoint?
What methods do you follow to protect from sql injection attack?
Explain raiserror in sql server?
Is mysql the same as sql server?