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 find the maximum no persons with same age(age
colomn) from emp table

Answer Posted / krishnakumar

select max_age,age
from
(select count(age) max_age,age from emp group by age order
by max_age desc)
where rownum < 2

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does Oracle guarantee data integrity of data changes?

2369


What is a trigger and what are its types in oracle?

1052


Give syntax for SQL and ORACLE joins.

1075


What is the disadvantage of User defind function?

2270


For a field in a repeating frame, can the source come from the column which does not exist in the data group which forms the base for the frame ?

1999


How to drop an index?

937


What is a package ? What are the advantages of package ?

1071


what is the dual table in oracle?

970


I have a table called 'test' on source and target with same name, structure and data type but in a different column order. How can you setup replication for this table?

1088


How to update a table row with a record?

992


A table t is there.If you perform insert ,update and delete then the trigger will fire.What is the minimum no of trigger required for a table.

5501


What are a query and state the different types of queries and their uses?

998


15. Display the item_cost and then truncate it to the nearest hundred, ten, unit, tenth and hundredth.

2280


why should i declare foreign key constraint as self relation instead of binary relation in tables ?

2022


How to add a new column to an existing table in oracle?

1115