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 / r.arjunarao

select a.sal from emp a where 2=(select count(distinct(b.sal)) from emp b where b.sal>=a.sal)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I start pl sql?

954


How many types of triggers are there in pl sql?

1070


What has stored procedures in sql?

1070


Explain the components of sql?

1068


What is the difference between explicit and implicit cursors in oracle?

1071


What is data control language (dcl)?

1147


how many tables will create when we create table, what are they? : Sql dba

1085


How to fix oracle error ora-00942: table or view does not exist

1019


Can 2 queries be executed simultaneously in a distributed database system?

1150


Which one is better subquery or joins?

1069


What is sql dialect?

1125


How do you remove duplicates without using distinct in sql?

985


What is sql profiler in oracle?

1099


What are the topics in pl sql?

978


How do I view a view in sql?

956