Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello to all,
I have two tables I want to load in my script. I load Table1 first, with an ID field. I want to load for the Table2 only lines with an ID that existe in the Table1.
How to do so?
Thank you !
YASSER TRY THIS
Fact:
LOAD
id,
xyz;
...from fact;
--many tables in between these tables has id fields
SalesPerson:
LOAD id,
SalesPerson, from ...
Where Exists(id);
Table1:
LOAD ID, .... FROM Table1....;
Concatenate
LOAD ID, ....
FROM Table2 ....
WHERE Exists(ID)
LOAD ID,
...
FROM Table2
WHERE EXISTS(ID);
YASSER TRY THIS
Fact:
LOAD
id,
xyz;
...from fact;
--many tables in between these tables has id fields
SalesPerson:
LOAD id,
SalesPerson, from ...
Where Exists(id);
LOAD
ID
From Table1;
Left Join
LOAD
ID
From Table2;
thank you
thank you for the answer, it worked
Thank you for the accurate answer, it's working
welcome sir