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

select *from(select *from emp orderby sal desc)where
ronum<=2 minus select *from (select *from emp order by sal
desc ) where rownum<=1;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to take user input in pl sql?

1167


what is oracle database ? : Sql dba

1035


What is native sql query?

1026


What is the purpose of the sql select top clause?

1116


How do I start pl sql?

953


What is trigger in sql and its types?

1065


What are different types of functions in sql?

1006


What is bind variable in pl sql?

1057


How many commands are there in sql?

1032


explain primary keys and auto increment fields in mysql : sql dba

980


What do you mean by “trigger” in sql?

1085


Does inner join remove duplicates?

945


What is oracle sql developer?

1062


What is mdf ldf and ndf?

1002


How would you pass hints to the sql processor?

983