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

I am having a table with columns
ID NAME
1 x and the requirement is to get the o/p like this
1 y ID Count(*)
1 z 1 3
2 a 2 2
2 b
3 c
so write a sql query to get the id n how many times its
count of repetition n there u shouldn't get the distinct(i.e
id-3)

Reply as early as possible

Answer Posted / sambu

select id,count(*) from <table name>
group by id having count(*)>1;

The above gives us desired output

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Mention some types of transformation?

1097


What is informatica powercenter repository?

1258


What is rank transform?

1061


Explain lookup transformation is active in informatica

1150


What is meant by incremental aggregation?

1185


What are the types of presistent cache in look up tr.

2104


which one is better performance wise joiner or look up

1151


What are the mapping parameters and mapping variables?

1272


How will the document be delivered to me?

1130


What are the various test procedures used to check whether the data is loaded in the backend, performance of the mapping, and quality of the data loaded in informatica?

1125


What is InformaticaPowerCenter?

1179


source : xml file target: xml file how can we check data loaded into target xml file using writing sql query. pls help on this asap.

2780


How do you migrate data from one environment to another?

1149


Hi friends I want to know about what r the dimensions in the banking porjects and genarally how many tables r in project ?

1957


What is sequence generator transformation in informatica?

1127