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
Do you know concepts and capabilities of sql server?
What is triggers and stored procedures?
Explain different types of BACKUPs avaialabe in SQL Server? Given a particular scenario, how would you go about choosing a backup plan?
Explain the steps to use transact-sql cursor?
What is bcp? When does it use?
What is bulkcopy in sql?
What are the indexes in sql server?
Do you know sql server 2008 backup compression?
Does order by actually change the order of the data in the tables or does it just change the output?
How to write a query with a right outer join in ms sql server?
What are audit control procedures?
What is a field name?
Describe in brief databases and sql server databases architecture.
What does indexation mean?
What is the xml datatype?