Jump to content

Counting the number of records per id


Recommended Posts

I have a huge file with multiple rows per CustomerIDs and Dates.

There's a second field called PRODUCT which has various two digits text codes.


I want to accomplish two things

1) Convert the date to YYYY-MM

2) for all the combinations of CustomerID and YYYY-MM, I want to count the number of times each PRODUCT occurs.   


Attached is a sample of 6-7 customers.  




Sample for Counting and SQL help.xlsx

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...