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 get second highest salary in SQL(as/4000

Answer Posted / mohamed shahid

select * from (select sal,rownum rn from(select sal from emp order by sal desc)) where rn=2;

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does partition by mean in sql?

957


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

1032


What is the use of <> sql?

976


What is flag in sql?

1029


What are the types of variables use in pl sql?

1039


What does subquery mean in sql?

1046


What is a database? Explain

1105


How can one get sql*loader to commit only at the end of the load file? : aql loader

1057


Is clustered index a primary key?

947


What is the process of copying data from table a to table b?

1086


How can I speed up sql query?

958


Mention what pl/sql package consists of?

995


Is left join faster than join?

1045


How do I truncate a word?

1085


How does cross join work?

947