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.
B
0
0
A create a time mapping table
0
0
Agreed it should be A
0
0
A. Discussed in previous version.
0
0
These are not the right answers. I finally smoked it out. Time mapping is a cdc concept:
https://msdn.microsoft.com/en-us/library/bb510494.aspx
and look at this:
http://www.aiotestking.com/microsoft/you-need-to-design-a-solution-that-can-join-a-single-time-dimension-to-both-fact-tables-5/
KMR is the only one with legitimate options. Note it here:
http://www.aiotestking.com/microsoft/you-need-to-design-a-solution-that-can-join-a-single-time-dimension-to-both-fact-tables-4/
0
0
A
0
0
C is definitely not the right answer.
In the question, it was stated in plain words the following “Referential integrity must be enforced declaratively”, which means that All constraints, keys etc… should be respected declaratively (Because we cannot enforce technically referential integrity on fact tables, due to performance issues.)
So C does’nt apply the stated above, neither B or C.
Hence the correct answer is A.
0
0