To find second largest salary in Employee table
Answer Posted / murugesh
select * from (select row_number over( order by salary
desc) as salcount,empid,salary from employee) emp
where emp.salcount = 2
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What happens if the update subquery returns multiple rows in ms sql server?
How to define output parameters in stored procedures?
What are scheduled tasks in sql server?
Explain the xml support sql server extends?
Name the different type of indexes in sql?
Define a cross join?
Explain forward - only cursors?
What are the advantages of using third-party tools?
Using the customer, and order table in northwind database, please write a query to produce xml?
If you're given a raw data table, how would perform etl (extract, transform, load) with sql to obtain the data in a desired format?
Who is the owner of a schema in ms sql server?
How to enter binary string literals in ms sql server?
Can we deploy SSRS reports on our personal website?
What is the benefit of normalization?
How do you Implement SSIS Packages in your Project?