write the query for find the top 2 highest salary in sql
server

Answer Posted / pari

select max(sal) from emp
where sal !=(select max(sal) from emp);

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between a fill factor of 100 and 0?

720


How efficient you are in oracle and SQL server?

807


What types of Joins are possible with Sql Server?

772


In one interview...interviewer ask me question pleas tell me sql server architecture.. can any body tell me the sql server architecture with digram

1715


how do you implement one-to-one, one-to-many and many-to-many relationships while designing tables? : Sql server database administration

784






What is Cross Join and in which scenario do we use Cross Join?

772


If user is owning any SQL Objects, can we drop that user

1808


What are the advantages dts has over bcp?

735


How can delete duplicate records in cte in sql server?

698


What is difference between group by and having?

720


What the different types of Replication and why are they used?

721


What is create command?

700


What is the process of normalising?

755


What is the maximum number of instances in 32 bit and 64 bit sql server 2012?

738


Explain what are the different index configurations a table can have?

863