Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Now accepting applications for the Qlik Luminary and Partner Ambassador Programs: Apply by July 6!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

join and Concatenate

I have four tables a,b,c,d

how can I get the result

(a join b)

Concatenate

(c join d),

 

a:

load * from a.qvd;

join (a)

load * from b.qvd;

Concatenate (a)

load * from c.qvd;

join

load * from d.qvd;

seems wrong

Best Regards !

Labels (1)
3 Replies
nagaiank
Specialist III
Specialist III

Maybe the following will work:

ab:

load * from a.qvd (qvd)

join (ab) load * from b.qvd (qvd);

cd:

noconcatenate load * from c.qvd (qvd);

join (cd) load * from d.qvd (qvd);

join (ab) load * resident cd;

drop table cd;

Not applicable
Author

Thanks for your answer.

jonathandienst
Partner - Champion III
Partner - Champion III

You may want to concatenate for the last step. This is very different to a join in the last step if the field names are the same in (a join b) and (c join d). The code is mostly the same:

ab:

load * from a.qvd (qvd)

join (ab) load * from b.qvd (qvd);

cd:

noconcatenate load * from c.qvd (qvd);

join (cd) load * from d.qvd (qvd);

concatenate(ab)

load * resident cd;

drop table cd;

Hope that helps

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein