Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I simply would like to join two tables, withtout specifying the fields, example:
Join:
LOAD * Resident Values;
Inner Join LOAD * Resident Formula;
If i do that it doesn't work. I have to specify the fields to load after the load statement...is there a solution to join all the fields?
Thank you.
You can try with this below code:
Formula:
LOAD * Inline [
KEY, FORMULA
EC_1, (F0001 + F0002) / F0003
];
Values:
LOAD * Inline [
KEY, ID, VALUE
EC_1, F0001, 10
EC_1, F0002, 20
EC_1, F0003, 20
];
Join:
NoConcatenate
LOAD * Resident Values;
Inner Join LOAD * Resident Formula;
DROP Table Formula;
DROP Table Values;
What do you want the resulting table to look like?
would like that:
Join:
NoConcatenate
LOAD
*
Resident Values;
LEFT Join (Join)
LOAD
*
Resident Formula;
...should do it.
You can try with this below code:
Formula:
LOAD * Inline [
KEY, FORMULA
EC_1, (F0001 + F0002) / F0003
];
Values:
LOAD * Inline [
KEY, ID, VALUE
EC_1, F0001, 10
EC_1, F0002, 20
EC_1, F0003, 20
];
Join:
NoConcatenate
LOAD * Resident Values;
Inner Join LOAD * Resident Formula;
DROP Table Formula;
DROP Table Values;
join:
load *,1 as dummy
resident values;
left join
load *,1 as dum
resident formulas;
drop fields dummy,dum;
Both work. Many thanks!