I have 3 tables
- DimInstitution (InstitutionKey, name)
- BridgeInstitutionRole (InstitutionKey, InstitutionRoleKey)
- DimInstitutionRole (InstitutionRoleKey, InstitutionRoleCode)
But, one InstitutionKey
can have many InstitutionRoleCode
. Please see the example
Now, InstitutionRole
can have new values as well. I want to create the dynamic InstitutionRoleCode
columns based on its value.
My expected output will be:
Can anyone please help me?