Desiging dimension tables

  • hi there

    I need some advice regarding creating DIM tables.

    I have a relational table which has composite PK & i want to create a SK in my DIM table ..how should I proceed.

    Thanks

  • You can basically create one table defining surrogate key. For example if you have tables like

    Region

    (idRegion

    RegionName

    )

    and

    Country

    (idCountry

    idRegion

    CountryName)

    if your composite key in Country is idRegion and CountryName then you can create a dim table as

    dimCountry

    (idCountry

    RegionName

    CountryName)

    where idCountry will be your surrogate key in the dimension table.

    Regards - JL

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply