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 / adithya

select min(sal) from (select distict sal from emp where
rownum<3 order by sal 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 a stored procedure call itself or recursive stored procedure? How much level sp nesting is possible? : Sql dba

1049


Can you have a foreign key without a primary key?

1000


How can a function retun more than one value in oracle with proper example?

1129


What are all the ddl commands?

1244


Does varchar need length?

1050


What is pls_integer in pl sql?

1158


What is an index in sql with example?

1022


Why indexing is needed?

1046


What is the difference between the repeatable read and serializable isolation levels? : Transact sql

1185


What are the types of records?

1038


What is an exception in pl/sql?

1170


What is pl sql and why it is used for?

1158


Explain the the update statement in sql?

1106


How many types of sql are there?

1047


What is full join in sql?

1035