F
Fanew3
Hello, I am trying to build a weekly sales report using data from several
different table. I have a style table (basic style info), a sku table
(multiple records for each style in the style table), and a sales table (data
is at the sku level). I'm not having any trouble getting sales rolled up to
the style level. My issue is getting that sales data broken out for multiple
time frames (each sales record includes a Beginning of week date).
Here's an example of my data sets:
Style Table:
Style Number Style Description Vendor Name
10-207 Candle Foust Industries
60-671 "Fitted T-Shirt" Raglan Brothers
Sku Table:
Sku ID Sku Description Cost Retail Style ID Color Color2 Size
10-207/IVO Candle Ivory $8.40 $24.00 10-207 Ivory
10-207/WHT Candle White $8.40 $24.00 10-207 White
60-671/PNK/L Pink Large $10.75 $29.00 60-671 Pink L
60-671/PNK/M Pink Medium $10.75 $29.00 60-671 Pink M
60-671/PNK/S Pink Small $10.75 $29.00 60-671 Pink S
60-671/PNK/XL Pink Extra Large $10.75 $29.00 60-671 Pink XL
60-671/WHT/L White Large $10.75 $29.00 60-671 White L
60-671/WHT/M White Medium $10.75 $29.00 60-671 White M
60-671/WHT/S White Small $10.75 $29.00 60-671 White S
60-671/WHT/XL White Extra Large $10.75 $29.00 60-671 White XL
And the Sales Table:
Date Sku ID Unit Sales Dollar Sales Cost Sales
6/3/2007 10-207/IVO 1 $24.00 $8.40
6/10/2007 10-207/IVO 1 $24.00 $8.40
6/17/2007 10-207/IVO 1 $24.00 $8.40
6/3/2007 10-207/WHT 2 $48.00 $16.80
6/10/2007 10-207/WHT 1 $24.00 $8.40
6/17/2007 10-207/WHT 2 $48.00 $8.40
Any suggestions?
different table. I have a style table (basic style info), a sku table
(multiple records for each style in the style table), and a sales table (data
is at the sku level). I'm not having any trouble getting sales rolled up to
the style level. My issue is getting that sales data broken out for multiple
time frames (each sales record includes a Beginning of week date).
Here's an example of my data sets:
Style Table:
Style Number Style Description Vendor Name
10-207 Candle Foust Industries
60-671 "Fitted T-Shirt" Raglan Brothers
Sku Table:
Sku ID Sku Description Cost Retail Style ID Color Color2 Size
10-207/IVO Candle Ivory $8.40 $24.00 10-207 Ivory
10-207/WHT Candle White $8.40 $24.00 10-207 White
60-671/PNK/L Pink Large $10.75 $29.00 60-671 Pink L
60-671/PNK/M Pink Medium $10.75 $29.00 60-671 Pink M
60-671/PNK/S Pink Small $10.75 $29.00 60-671 Pink S
60-671/PNK/XL Pink Extra Large $10.75 $29.00 60-671 Pink XL
60-671/WHT/L White Large $10.75 $29.00 60-671 White L
60-671/WHT/M White Medium $10.75 $29.00 60-671 White M
60-671/WHT/S White Small $10.75 $29.00 60-671 White S
60-671/WHT/XL White Extra Large $10.75 $29.00 60-671 White XL
And the Sales Table:
Date Sku ID Unit Sales Dollar Sales Cost Sales
6/3/2007 10-207/IVO 1 $24.00 $8.40
6/10/2007 10-207/IVO 1 $24.00 $8.40
6/17/2007 10-207/IVO 1 $24.00 $8.40
6/3/2007 10-207/WHT 2 $48.00 $16.80
6/10/2007 10-207/WHT 1 $24.00 $8.40
6/17/2007 10-207/WHT 2 $48.00 $8.40
Any suggestions?