I am developing a data warehouse and am facing a problem. I am not sure how to fix this. The current scheme is defined below:
DimInstructor <- Size chart for instructors DimStudent <- Size chart for students
I want to implement a scenario in which, when changing instructor details in my OLTP database, I want to add a new record to the DimInstructor table for historical reasons.
Now I want to create a lesson dimension table called DimLesson. In DimLesson, I want to create a link to an instructor.
The DimInstructor table contains:
InstructorDWID <- Identification field when entering DW InstructorID <- identifier of the instructor that comes from the OLTP database
Now I can not make InstructorID the primary key, because it is not guaranteed to be unique (if the teacher changes his name, 2 records with the same InstructorID value will be indicated in the DW).
So my question is: how do I contact an instructor from DimLesson? Do I use InstructorDWID? If so, should I have 2 entries for the instructor in the DimInstructor, this will make it difficult to request when I want to see all the lessons from a particular instructor.
Any help would be appreciated!
source
share