To find second largest salary in Employee table
Answer Posted / sujith
select empname,salary from(
select empname,salary, rank() over( order by salary desc) ss from emp)
where ss=2;
Is This Answer Correct ? | 3 Yes | 4 No |
Post New Answer View All Answers
How do I install only the client tools of sql server 2000?
Explain the steps to create and execute a user-defined function in the sql server?
What is meant by indexing files?
What is named calculation? : sql server analysis services, ssas
What are the advantages of using third-party tools?
List out the different types of locks available in sql server?
what are the disadvantages of cursors? : Sql server database administration
What is #table in sql server?
What is an execution plan? How would you view the execution plan?
What is user defined stored procedures?
What is side by side migration in sql server?
Explain error handling in ssis?
Explain primary key in sql server?
What are the advantages of stored procedure in sql server?
How to use clusters?