Database Table
Here are a few guidelines for modeling and designing fact tables.
Fact Table Effective Practices
- The table naming convention should identify it as a fact table. For example:
- Suffix Pattern:
- <<TableName>>_Fact
- <<TableName>>_F
- Prefix Pattern:
- FACT_<TableName>>
- F_<TableName>>
- Must contain a temporal dimension surrogate key (e.g. date dimension)
- Measures should be nullable – this has an impact on aggregate functions (SUM, COUNT, MIN, MAX, and AVG, etc.)
- Dimension Surrogate keys (srky) should have a foreign key (FK) constraint
- Do not place the dimension processing in the fact jobs
- Suffix Pattern:
2 Comments