can anybody tell us, how to select 2nd max salary from
table.
my id is ashish.akk@gmail.com

Answer Posted / kumar_kisna

select max(salary) from table where salary<(select max
(salary) from table)

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to use order by with union operators in ms sql server?

577


What is the difference between DataRow.Delete() and DataRow.Remove()?

740


Why does a sql statement work correctly outside of a user-defined function, but incorrectly inside it?

497


What is difference between clustered and non clustered index?

535


how can you select rexcord(rows) from table A which is not present in Table B . Id being the FK in Table B referencing to ID Table A

1221






What are the types of subquery?

550


when would you go for denormalization? : Sql server database administration

487


How to choose all records from the table?

659


What is wide table?

540


What is normalization of database?

605


What is a transactions?

606


What are diverse clauses that form a part of sql?

601


How will you find out if there are expensive SQL statements running or not?

585


What is sql language?

555


Explain about remote stored procedure?

593