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 many types of keys are there in sql?

986


What is pl sql and why it is used for?

1070


How do I view a table in sql?

948


Is ms sql traffic encrypted?

872


What is the use of count (*) in sql?

980


Can variables be used in sql statements?

980


Explain what is a column in a table?

1041


Explain character-manipulation functions?

1067


What is the difference between having clause and where clause?

1009


Explain constraints in sql?

981


What are the different types of database management systems?

950


Can you call pl/sql package functions from within a fast formula?

974


What is difference between function and trigger?

969


How many types of triggers exist in pl/sql?

1009


Why is a trigger used?

888