can anybody tell us, how to select 2nd max salary from
table.
my id is ashish.akk@gmail.com
Answer Posted / darshan shah
select top 1 * from (select top 2 * from emp order by sal
desc ) a order by sal asc
Plz try this.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is “begin trans”, “commit tran”, “rollback tran” and “savetran”?
What is the largest component inside a field?
What are unicode character string data types in ms sql server?
What are the commands used in DCL?
What is ssl in sql server?
What is clustered primary key?
What is enhanced database mirroring in sql server 2008?
How to create new table with "create table" statements?
What are the different kinds of ssrs reports?
What is the name of the system variable that returns the number of rows affected by a SQL statement?
what are user defined datatypes? : Sql server database administration
What is the difference between inner join and equi join?
Define right outer join?
How to maintain a fill factor in existing indexes?
Can we use custom code in ssrs?