Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

Announcements
Make your voice heard! Participate in the 2020 Wisdom of Crowds® Survey. BEGIN SURVEY
chris1987
Contributor

Joining two tables - Left Join? or Mapping Load?

Afternoon,

I’m having problems in joining two tables, I’ve shortened down what I’m trying to do for this example but the logic is the same. Table1 is a master tables which has approx. 50 fields in it. Table2 is a smaller table with 9 fields in it. All of the headers in Table2 exist in Table1.

What I’m trying to do is append the data from Table2 to the bottom of Table1 (obviously keeping the info in the correct columns).

Here’s a shortened version of the code:

Table1:

Load

[Customer Name] as [Customer],

[Planned Qty] as [Qty Ordered],

[Customer Address1] as [Customer Add 1],

[Customer Address2] as [Customer Add 2],

[Customer Contact] as [Customer Contact],
[Sched Date] as [Req Date],
[Sched Date] as [Load Date],
Bookcode,
[Item No],
[Item Description] as Description,
Generic,
[Workorder] as [Sched Batch],
Progstage
FROM
[\\Data\custhour.txt]
(
txt, codepage is 1252, embedded labels, delimiter is ',', msq); 

Table2:

Load [Planned Qty] as [Qty Ordered],
[Sched Date] as [Req Date],
[Sched Date] as [Load Date],
Bookcode,
[Item No],
[Item Description] as Description,
Generic,
[Workorder] as [Sched Batch],
Progstage
FROM
[\\Data\wolsthour.txt]
(
txt, codepage is 1252, embedded labels, delimiter is ',', msq); 

I need to then join them.

Thanks in advance

Chris

3 Replies
Highlighted

Re: Joining two tables - Left Join? or Mapping Load?

I think you might be looking for Concatenate instead of Join or Mapping. Check out the link for the difference between the two -> Understanding Join, Keep and Concatenate

Highlighted
trdandamudi
Honored Contributor II

Re: Joining two tables - Left Join? or Mapping Load?

I think you need to concatenate and not join....

Highlighted
chris1987
Contributor

Re: Joining two tables - Left Join? or Mapping Load?

Thanks for the replies, yeah I've just been playing around with concatenate....I think I'm almost there with it.

Thanks again

Chris