January 12, 2016 at 8:17 am
Hi,
I have a scenario to load an Aggregate table. Let's take Adventure works for case-study.
I am required to populate 1 record in Agg table for EACH line-of-business PER each day, say:
Date InternetSales RetailSales 3rdLineofBusiness3rd_LOB_Amount
20160101 300.20 514.23 Flavor125.00
20160101 300.20 514.23 Flavor2 89.00
20160101 300.20 514.23 Flavor3 76.30
From above sample, it is evident that 3rd line of business has lower granularity and to accommodate that, we are inviting repetitions for InternetSales and RetailSales. Third column and fourth column are actually telling the sales story of the same line of business (but classified into three areas)
Is there a way to avoid this repetitions, and have only 1 record for each date and still accounting for 3rd line of business's granularity of 3?
any denormalisation?
thank you
January 12, 2016 at 5:02 pm
I don't understand most of the terms you use about your business, but based on the sample data I think your table design is not normalized.
You'll want to have two tables. One with Date, InternetSales, and RetailSales; the second with Date, 3rdLineofBusiness, and 3rl_LOB_Amount.
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply