Here is my notes #8 about more keys in a star schema.
In the previous notes, MS BI Workshop #7 – What are all those keys in a star schema?, I showed two typical keys you are seeing in a dimensional table, a surrogate key and an alternate key.
In this notes, I will show two types of foreign keys you will sometimes see in a dimensional table.
This Organization view in DSV in BIDS is showing two FKs, ParentOrganizationKey, which references the DimOrganization table itself, and CurrencyKey, which references the DimCurrency dimension table.
Here is the creation script of dimension table DimOrganization. The first FK on column CurrencyKey references the DimCurrency dimension table. The second FK on column ParentOrganizationKey references the DimOrganization table itself.
Tags: #SQLServer, SQL Server, BI, brh, #BI, MS BI STACKS,