write the query for find the top 2 highest salary in sql
server
Answer Posted / neeraj sharma
select ename,sal from emp where rownum<=3 order by sal desc
Note:- every table has rownum column but it is hidden by
default you can see it by this
select rownum from your_table_name
| Is This Answer Correct ? | 3 Yes | 4 No |
Post New Answer View All Answers
What are parameterized reports? What are cascading parameters in ssrs reports?
Is foreign key unique?
Can you explain different types of locks in sql server?
How do I save a stored procedure in sql server?
What is the use of group by clause?
What are the differences in Clustering in SQL Server 2005 and 2008 or 2008 R2?
How to resolve the orphan use problem? : sql server security
Other than truncate statement, which other command can by-pass the trigger on the tables?
What is the recovery model? List the types of recovery model available in sql server?
What is the process of normalization?
Define cross join in sql server joins?
Explain what is sql server english query?
Explain raiserror in sql server?
How to create a new table in a given schema?
How to how to convert numeric expression data types using the convert() function??