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
What is function of master database?
What is cross join in sql server joins?
What are triggers? How many triggers you can have on a table? How to invoke a trigger on demand?
Can we insert data into view sql server?
How to scale out a federation by Sql statement?
What is 2nf example?
You want to implement the one-to-one relationship while designing tables. How would you do it?
What is table level trigger?
What is sql server transaction log file?
What is efficiency data?
What type of locking occurs during the snapshot generation? : sql server replication
Why would you use sql agent?
How to create “dependant” parameter “make, model, year”
What is the current limitation of the size of SQL Azure DB?
How to perform key word search in tables?