write the query for find the top 2 highest salary in sql
server
Answer Posted / vijayalaxmi m khot
select max(sal) from emp where sal=(select max(sal) from emp
where sal<(select max(sal) from emp));
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
If no size is defined while creating the database, what size will the database have?
What is Lock table in SQL?
What is rtm version in sql server?
What is t-sql script to take database offline – take database online.
How to reaname table name without using sp_Rename in sql server..?
explain the storage models of olap? : Sql server database administration
Can the query output be sorted by multiple columns in ms sql server?
What are the export options of ssrs?
How to round a numeric value to a specific precision?
explain different types of cursors? : Sql server database administration
How to Check if table exists in sql server?
What is the dbcc command and why is it used?
How to generate create function script on an existing function?
What are page splits? : SQL Server Architecture
Give an example of why you would want to denormalize a database