Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how to find the second salary?

Answer Posted / kavitha

select max(salary) from tablename where salary not in(select
max(salary) from tablename )

or


select max(salary) from tablename where salary <(select
max(salary) 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

can a database be shrunk with users active? : Sql server administration

1009


In case you have filters in your report, when filters will be applied in cached report instance?

113


What is the xml datatype?

1072


What is the recovery model? List the types of recovery model available in sql server?

906


How to delete a login name in ms sql server?

1075


List some advantages and disadvantages of stored procedure?

1016


Explain log shipping and mention its advantages.

1044


Write the SQL query to drop, truncate and delete table.

973


What is named query? : sql server analysis services, ssas

967


What are the advantages of partitioning?

1128


Create and insert into temp table in sql server?

1033


What stored procedure can you use to display the current processes?

893


What is the recursive stored procedure in sql server?

1021


What are different types of collation sensitivity?

987


What is the downside of using udf?

1109