Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I am trying to form a relationship for 2 tables OrderH and OrderD for columns OURSO, Customer Number, and Invoice Date.
How should my load script look like to do this?
Hi Sajid,
Something like that?
OrderH:
Load
OURSO &'-'& [Customer Number] &'-'& [Invoice Date] AS Key,
Field1,
Field2,
Field3
From OrderH ;
OrderD:
Load
OURSO &'-'& [Customer Number] &'-'& [Invoice Date] AS Key,
Field4,
Field5,
Field6
From OrderD;
Best Regards,
Agustín
Do you want explicitly join them into one table?
Hi Sajid,
Something like that?
OrderH:
Load
OURSO &'-'& [Customer Number] &'-'& [Invoice Date] AS Key,
Field1,
Field2,
Field3
From OrderH ;
OrderD:
Load
OURSO &'-'& [Customer Number] &'-'& [Invoice Date] AS Key,
Field4,
Field5,
Field6
From OrderD;
Best Regards,
Agustín
chk dis aswell
if you have many columns to be combined across 2 tables you could use JOIN , if you want to link the 2 tables using limited set of keys then you can form a composite a key ..
provide a sample data set that will help us to suggest better
PFA document
HTH
Vikas
Hey guys I figured it out! Thanks a bunch for your help! ![]()