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 the maximum size of column in sql server?
How sql server executes a statement with nested subqueries?
What are the differences between “row_number()”, “rank()” and “dense_rank()”?
Explain the stored procedure?
in a table is b in column k (manikanta,sivananda,muralidhar) i want result like (mnikanta,sivnanda,murlidhar) please slove it
What is the sql case statement used for?
What does it mean to normalize data?
How will you optimize a stored procedure optimization?
can a table be moved to different filegroup? : Sql server administration
Is a primary key unique?
Can binary strings be used in arithmetical operations?
Define ACID properties in a Database?
What is TDS(Tabular Data Stream) Gateway?
Explain the purpose of indexes?
How to create new tables with "select ... Into" statements in ms sql server?