You need to design a solution that can join a single time dimension to both fact tables

You are designing a data warehouse with two fact tables. The first table contains sales per month and the
second table contains orders per day. Referential integrity must be enforced declaratively. You need to design a
solution that can join a single time dimension to both fact tables. What should you do?

You are designing a data warehouse with two fact tables. The first table contains sales per month and the
second table contains orders per day. Referential integrity must be enforced declaratively. You need to design a
solution that can join a single time dimension to both fact tables. What should you do?

A.
Create a time mapping table.

B.
Change the level of granularity in both fact tables to be the same.

C.
Merge the fact tables.

D.
Create a view on the sales table.



Leave a Reply 3

Your email address will not be published. Required fields are marked *


Mikael

Mikael

The time mapping table, what is it, who knows?

John

John

Time Mapping table is probably a table that contains all the months and all it’s days, you can generate such via CTE.
However you dont even need that really, you could simply use DATEADD on both dates and reset them to the beginning of the month.