can anybody tell us, how to select 2nd max salary from
table.
my id is ashish.akk@gmail.com
Answer Posted / kumar
1 My Second Answer.
Select Top 1 * From Tablename where salary in
(select top 2 salary from tablename order by salary desc)
order by salary asc.
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
Can We Use Data-grids For Our Report In Ssrs?
What is the purpose of a table?
What are the different types of cursor?
Can we use trigger new in before insert?
What are relationships and mention different types of relationships in the dbms
What is function of master database?
How to Sync Two SQL Azure Databases?
Show Practically Sql Server Views are updatable?
How to check if a table is being used in sql server?
Which are the two editions in which SQL Azure database available?
What is optimization and its types?
How do use Having,Group by,Group function in SQL?
How do you create type- insensitive operator?
When would you use a before or after trigger?
How to achieve Paging of records in SQL SERVER?