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
Explain index in sql server?
How to find the second highest salary of an employee?
What are transactions in sql?
What are the new features of sql server 2008 r2 reporting service?
Where the sql logs gets stored?
What is key set driven?
Is BCNF better than 2NF & 3NF? Why?
Explain having clause?
Explain in details security in SQL azure?
what is the difference between a primary key and a unique key? : Sql server database administration
how to trace the traffic hitting a sql server? : Sql server database administration
Explain the difference between cross join and full outer join?
What are the different types of Indexes available in SQL Server?
Difference between connected and disconnected database in .net with sql server?
What are the advantages of log shipping?