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

Explain the use of aggregator cache file?

1260


What is the use of source qualifier?

1141


What are the tuning techniques you applied during your last project

2029


Can some one explain me about Telecommunications(wireless) project in Informatica? Thanks in advance

1983


Hello, Can you please send the admin and advanced mapping design sample questions to ns_sharmin@yahoo.com?

2347


What are pre and post-session shell commands?

1321


Can you generate sequence numbers without using the sequence generator transformation?

1125


Explain the difference between a data warehouse and a data mart?

1063


What are roles and groups and benefits of using them?

1057


How to use procedural logic inside infromatica? If yes how, if now how can we use external procedural logic in informatica?

1131


Explain what are the different types of transformation available in informatica. And what are the mostly used ones among them?

1054


What is the difference between writing a joiner query in ANSI style and THETA style?

2383


What is Story point Estimation ? Can any one give just an introduction about this ? Advance Thanks

5685


What are the popular informatica products?

1015


Enlist few areas or real-time situations where informatica is required.

1092