Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
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
I think you need to concatenate and not join....
Thanks for the replies, yeah I've just been playing around with concatenate....I think I'm almost there with it.
Thanks again
Chris