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 / ruchi

SELECT ID,COUNT(*) FROM TABLE1
GROUP BY ID
HAVING COUNT(*)>1

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does cheating measurement mean?

1063


Reusable transformation and shortcut differences

1840


Enlist the various types of transformations.

1057


How many types of sessions are there in informatica.please explain them?

1169


what is unit testing?tell me proceedure

2223


How to load the name of the current processing flat file along with the data into the target using informatica mapping?

1272


What is enterprise data warehousing?

1049


How many ways are there to do 'remove duplicate records in informatica'?

1015


What is intricate mapping?

1205


Sequence generator, when you move from develoment to production how will you reset

2040


IN SCD1, insource we have 10 billion records and in the first day its uploaded successfully and in the second day its taking time to upload because some records it might get update or insert new records. As a developer what will be the better solution for this??

1040


Differences between connected and unconnected lookup?

1218


How to elaborate tracing level?

1179


What is exclusive and normal mode for repository services?

1144


in staging we are merging the data and remove the inconsistants data that type of situation what u will done and type of functions u can use

2038