How to Create a link table and master calendar from multiple dates
Hi guys looking for some help,
I am trying to create a link table from 3 diferent tables that contain three different date fields. I then want to create one master calendar for the application.
Tables:
FactoryData - Date
SupplierData - SupplierCreatedDate
CorrectiveActions - ModifiedDate
I have tried the following but not having much luck as there is no association with anything.
//---------Calendar Link Table----------------------
Link:
LOAD
%SupplierKey,
Date AS LinkDate,
'FactoryDate' AS DateType
RESIDENT FactoryData;
CONCATENATE (Link)
LOAD
%SupplierKey,
SupplierCreatedDate AS LinkDate,
'SupplierDate' AS DateType
RESIDENT SupplierData;
CONCATENATE (Link)
LOAD
%CorrectiveActionKey AS %CorrectiveActionKey_Link,