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 is persistent lookup cache?

966


How do you update the records with or without using update strategy?

1055


What is a shortcut and copy in Informatica and how two are different with each other?

1130


how can we find the bottle neck in SQL Query in SOURCE QUALIFIER, and how can we tune it..?

6910


What is a snowflake schema?

924


What are the designer tools for creating transformations?

1047


Design a mapping to get the pervious row salary for the current row. If there is no pervious row exists for the current row, then the pervious row salary should be displayed as null.

1226


What is the difference between SOURCE and TARGET BASED COMMITS? What are the deliverables?in your project?

2063


What is Session and Batches?

1040


what is the size of your data warehousing?

2043


Define the various join types of joiner transformation?

941


Explain about cumulative Sum or moving sum?

976


What are multi-group transformations?

1011


How to generate sequence numbers without using the sequence generator transformation?

1113


What are the different clients of powercenter?

1006