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

Answer Posted / divya

select max(sal) from tablename where sal<(select
max(sal)from tablename)

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is after dml trigger?

763


Tell me what is a linked server?

767


What is the difference between Normalization and De-normalization?

780


When you should use a low fill factor?

720


What are the requirements to use odbc connections in php scripts?

807






Why would you use sql agent?

883


What is optimization and its types?

710


What is service broker? : sql server database administration

742


explain databases and sql server databases architecture? : Sql server database administration

699


How do you create a data source?

650


How to test values returned by a subquery with the in operator?

880


Explain the dirty pages?

755


What is stored in the mssqlsystemresource database? : sql server database administration

779


What is the difference between dropping a database and taking a database offline?

907


What is difference between order by and group by?

755