Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

unite the tables

Hi.

Help me please.

I have two tables:

Table1

idpath   pathcode
group1600
1Bgroup1500
Call
Dgroup800
Egroup500

Table2

shopspathcode
shop11600
shop21600
shop31600
shop4800
shop5800
shop61500
shop71500

Final table must looks like this

idpathpathcodeМагаз
group1600shop1
group1600shop2
group1600shop3
Dgroup800shop4
Dgroup800shop5
Callshop1
Callshop2
Callshop3
Callshop4
Callshop5
Callshop6
Callshop7

how can i concatenate table1 and table2 for this result?

Thanks!

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Well, this is not exactely replicating your output table (why do you don't show id 1b? I also show id E, but this could be removed if necessary):

I😧

LOAD id,

     path,

     pathcode

FROM

[http://community.qlik.com/thread/53475?tstart=0]

(html, codepage is 1252, embedded labels, table is @1);

Shops:

LOAD shops,

     pathcode

FROM

[http://community.qlik.com/thread/53475?tstart=0]

(html, codepage is 1252, embedded labels, table is @2);

RESULT:

LOAD id as ID, path as Path, pathcode as PathCode resident ID where path='group';

join (RESULT) load shops as Shops, pathcode as PathCode resident Shops;

tmpRESULT2:

LOAD id as ID, path as Path Resident ID where path='all';

join (tmpRESULT2) load shops as Shops, pathcode as PathCode Resident Shops;

Concatenate (RESULT) load * Resident tmpRESULT2;

drop tables tmpRESULT2;

View solution in original post

2 Replies
swuehl
MVP
MVP

Well, this is not exactely replicating your output table (why do you don't show id 1b? I also show id E, but this could be removed if necessary):

I😧

LOAD id,

     path,

     pathcode

FROM

[http://community.qlik.com/thread/53475?tstart=0]

(html, codepage is 1252, embedded labels, table is @1);

Shops:

LOAD shops,

     pathcode

FROM

[http://community.qlik.com/thread/53475?tstart=0]

(html, codepage is 1252, embedded labels, table is @2);

RESULT:

LOAD id as ID, path as Path, pathcode as PathCode resident ID where path='group';

join (RESULT) load shops as Shops, pathcode as PathCode resident Shops;

tmpRESULT2:

LOAD id as ID, path as Path Resident ID where path='all';

join (tmpRESULT2) load shops as Shops, pathcode as PathCode Resident Shops;

Concatenate (RESULT) load * Resident tmpRESULT2;

drop tables tmpRESULT2;

Not applicable
Author

swuehl, thank you very much. Its realy help. TY!