write the query for find the top 2 highest salary in sql
server
Answer Posted / sivashankar.soma
select ename,sal from emp E where 1=(select count(*) from
emp where E.sal<sal)
| Is This Answer Correct ? | 16 Yes | 29 No |
Post New Answer View All Answers
What command is used to delete a table from the database in the sql server and how?
If you lose rights to your sql server instance what are the options to connect to sql server instance? : sql server security
Explain Geography datatype in SQL Server
Name the different type of indexes in sql?
How to create user defined functions with parameters?
What is the purpose of self join?
What are data files?
What happens if you are trying to access a schema not owned by you?
I have triggers,views,functions,stored Procedures for a table. When I am dropping that table which objects are deleted?
How do you use a subquery to find records that exist in one table and do not exist in another?
What programming language would you use to create embedded functions in ssrs?
Explain having clause and where clause?
explain what are the steps you will take, if you are tasked with securing an sql server? : Sql server database administration
What are the different types of cursor?
What is the current pricing model of SQL Azure?