Parent-child relationship I

Attributes can be related to each other (like in the case of city, province, and country) to form relationships between them. Furthermore, the tables holding attribute data can be normalized, as in the DimProduct, DimProductSubcategory, and DimProductCategory or denormalized as in the DimGeography table where we have province and country names repeated in every row. It is important that foreign keys are in place to preserve data integrity and help the RDBMS use the less expensive query path. So, for example, we have in the DimProductSubcategory table a foreign key pointing to the primary key in the DimProductCategory table.

If you look at the content of the DimProduct table, you'll see some records with NULL values in ...

Get Business Intelligence with MicroStrategy Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.