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 highest salary from emp table?

Answer Posted / rahul thakur

select top 1 salary from emp where id not in (select top1 id from emp order by salary desc)order by salary desc.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we use having without group by in sql?

982


How to pronounce postgresql?

1057


What is #table in sql?

1094


how to shutdown mysql server? : Sql dba

1096


what are the properties and different types of sub-queries? : Sql dba

1032


What is aggregate function in sql?

1032


What is the command used to fetch first 5 characters of the string?

1396


what is data integrity? : Sql dba

1036


What is normalization in a database?

1152


What is the need of a partition key?

983


What are data types in pl sql?

1139


Can you skip header records while loading? : aql loader

1053


what are the types of subquery? : Sql dba

1102


What is synonyms?

1057


What is a heap in sql?

1067