Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Below is what my code looks like. What I am ultimately trying to accomplish is that table C should relate to table B if B_ID is populated, but table A if B_ID is not populated.
Link:
NoConcatenate
LOAD
A_ID
Resident TableA;
LEFT JOIN (Link)
LOAD
B_ID,
A_ID
Resident TableB;
LEFT JOIN (Link)
LOAD
C_ID,
A_ID
Resident TableC
WHERE IsNull(B_ID);
LEFT JOIN (Link)
LOAD
C_ID,
B_ID
Resident TableC
WHERE Not(IsNull(B_ID));
If you get a chance , 3 sample files (table A,B,C) and 1 combined result (joined table) would help clarify the need.