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

How to create new table with "create table" statements?

1195


What is the command used to check locks in microsoft sql server?

1102


What are the benefits of filtered indexes?

1099


What is the difference between lock, block and deadlock? : sql server database administration

1094


What are drillthrough reports?

161


1.how to find the dead lock in sql server? 2.How to fine the memory leaks in sql server? 3.suppose transaction log file increasing what action will take ?

2081


What is sql azure database?

206


What is the meaning of lock escalation and why/how to stop this? : sql server database administration

1083


What is difference between createstatement and preparedstatement?

1176


how many bits ip address consist of? : Sql server database administration

944


What part does database design plays a role in performance of an sql server-based application?

1036


How to test subquery results with the exists operator?

1168


Call by value and call by reference in procedure and function, with NOCOPY.

1351


Can we call stored procedure in trigger?

999


Explain about Normalization?

1122