Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Join all the fields of two tables

Hi,

I simply would like to join two tables, withtout specifying the fields, example:

join.jpg


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.

1 Solution

Accepted Solutions
somenathroy
Creator III
Creator III

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;

View solution in original post

6 Replies
Jason_Michaelides
Luminary Alumni
Luminary Alumni

What do you want the resulting table to look like?

Not applicable
Author

would like that:

join.jpg

Jason_Michaelides
Luminary Alumni
Luminary Alumni

Join:

NoConcatenate

LOAD

*

Resident Values;

LEFT Join (Join)

LOAD

*

Resident Formula;

...should do it.

somenathroy
Creator III
Creator III

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;

sudeep_d
Partner - Creator
Partner - Creator

join:

load *,1 as dummy

resident values;

left join

load *,1 as dum

resident formulas;

drop fields dummy,dum;

Not applicable
Author

Both work. Many thanks!