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...

Query to get max and second max in oracle in one query ?

Answer Posted / mehul

select max(sal) from emp where sal not in ( select max(sal)
from emp)

Is This Answer Correct ?    29 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the various oracle database objects?

1093


Give the constructs of a package, function or a procedure.

983


What is the difference between a hot backup and a cold backup in oracle?

961


What are set operators?

1032


What is BBED in Oracle?

1091


Please explain oracle data types with examples?

992


What query tells you how much space a tablespace named test is taking up, and how much space is remaining?

2210


Explain an exception?

923


What is procedure overloading in oracle?

994


How do you tell what your machine name is and what is its IP address?

2006


What is the difference between formal parameters and actual parameters?

1005


What are triggers in oracle?

978


1) What is ONE_SIZE_FITS_ALL approach? 2) Explain the Common & Variable Header of DATA FILE? 3) What are the Drawbacks to using OMF DB? and the Advantages? 4) List out the Advantages of Undo T.spaces over the Undo SEGMENT? 5) Difference between the Temporary tablespace with TEMPFILE and the Tablespace with TEMPORARY Keyword? 6) What are the situation extents are freeing for reuse.

2022


How to define an oracle cursor variable?

977


What is the difference between Delete, Truncate and Drop in Oracle?

1067