Forum Discussion

KevinMc84's avatar
KevinMc84
Regular Visitor
2 years ago
Solved

Relationship between two tables for multiple columns

Hey there,
currently I have two tables that are related thru the "employee_id".
The fact table "employee_type" could have up to 4 rows for one day. Like this for example:

 

RegionDateEmployee_IDStatus
12023-10-241234A
12023-10-241234B
12023-10-241234C
12023-10-245678

D


The related dimension table looks something like this:

Employee_IDName
1234Mike
5678Jim


My fact table contains about 35 million rows and is getting bigger everyday. My idea is to change the fact table to something like this:

RegionDateStatus AStatus BStatus CStatus D 
12023-10-241234123412345678 


Is it still possible to link the dimension table to all 4 columns which contain the employee_id? Do I link one column as active and the other 3 as inactive relationship?

Thanks in advance!

  • Hi KevinMc84 
    Yes, there is no limit to inactive relationships.

    If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

1 Reply

  • Hi KevinMc84 
    Yes, there is no limit to inactive relationships.

    If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly