Historical Data Flashcards
T/ F only Caboodle tables have a change type, not columns.
False. Columns and tables each have a change type depending on whether or not they track historical data in the source.
A tables change type is listed under what section in the Dictionary?
Properties section.
T/F in the Dictionary, Columns not labeled as type 2 are Type 1
True
Type 2 tables have additional columns to help make sense of historical data in the table. What are they?
DurableKey, StartDate, EndDate, IsCurrent
The FullAccess schema contains a special type of view for Type 2 tables with only the current data. How are they named?
The name of the table with “_Current” appended.
Ex:
What table and column would you use to generate a count of patients in SlicerDicer (Patients DM)?
PatientDim . PatientDurableKey because it’s Distinct.
What is a durable key?
DurableKey’s identify an entity. Type 2 tables have a DurableKey column which stores the same value for all rows in that table that correspond to the same entity.
This allows for grouping or summarizing data by the entity.
T/F All columns in a Type 1 table are type 1
True
T/F SELECT DurableKey FROM will only run if the table is Type 2
True
T/F In the query SELECT DurableKey FROM the value in the DurableKey column could repeat in multiple rows of the results.
True
If the DurableKey identifies an entity, what does the PrimaryKey represent?
The entity at a moment in time.
How does data get into Caboodle?
SSIS packages
Should you use a TargetKey or a Type 1 fact table to report on dates and times? why?
Type 1 Fact tables are the better source. A TargetKey will hold the date/time that Caboodle found out about it.