SanAntonioSpurFan
Instructor
I have a table called Scan Sales that contains the following fields: UPC, StoreID, WeekID, Units Sold
I want to create a query that will count the number of weeks a UPC has sold and also count the number of stores the upc sold in.
Data looks like this:
UPC, StoreID, WeekID, Units
001, 50, 19000, 5
001, 50, 19001, 2
001, 50, 19002, 3
001, 75, 19000, 7
001, 75, 19001, 3
001, 75, 19002, 5
I would want the query to produce the following:
UPC, Store Count, Weeks Scaned, Units Sold
001, 2, 3, 25
I want to create a query that will count the number of weeks a UPC has sold and also count the number of stores the upc sold in.
Data looks like this:
UPC, StoreID, WeekID, Units
001, 50, 19000, 5
001, 50, 19001, 2
001, 50, 19002, 3
001, 75, 19000, 7
001, 75, 19001, 3
001, 75, 19002, 5
I would want the query to produce the following:
UPC, Store Count, Weeks Scaned, Units Sold
001, 2, 3, 25