from the table display the 2nd highest salary?
and also the least 2nd salay?
Answer Posted / sridhar sahoo
select distinct top 1 salary from payroll..emp where salary
in(select distinct top 3 salary from payroll..emp order by
salary desc)
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the difference between ROW_NUMBER and Ranking function in SQL SERVER?
how will add additional conditions in sql?
Is candidate a key?
How to create new databases with "create database" statements?
Which are the two editions in which SQL Azure database available?
What are the advantages of using stored procedures in sql server?
What is encryption key?
What is nonclustered index with included columns ?
What is query optimizer in sql server?
what stored procedure would you use to view lock information? : Sql server administration
How can you control the amount of free space in your index pages?
How do I view a procedure in sql server?
How do you set a trace flag in sql server?
What is enhanced database mirroring in sql server 2008?
How many ways to create table-valued functions?