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

Is it possible to run multiple publications and different type of publications from the same distribution database? : sql server replication

970


How can you find out if the current user is a member of the specified microsoft® windows nt® group or microsoft sql server™ role?

1017


What is a filestream?

971


What is data mart? : sql server analysis services, ssas

1036


What is the maximum rows in sql server table?

895


What are three ways you can use an identity value inside a trigger? Why would you prefer one way over another?

976


What is the query and subquery?

1059


Can you explain how long are locks retained within the repeatable_read and serializable isolation levels, during a read operation with row-level locking?

966


How many types of attribute relationships are there? : sql server analysis services, ssas

1054


What is Replication?

1025


List out some of the requirements to set up a sql server failover cluster?

1020


List out the differences between the clustered index and non-clustered index in sql server?

988


How do I know if localdb is running?

929


Describe and explain about SQL native client?

1087


What are the different index configurations a table can have?

947