Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
prabunakil
Contributor III
Contributor III

Full Outer Join

Hi i have a scenario as per below, two source of data need to map and show as per screen shoot.

Please advise how i can load the script.

Full Outer Join.JPG

1 Solution

Accepted Solutions
vitaliichupryna
Creator III
Creator III

Hi Prabu,

See example in attachment.

Concatenate works fine, but you need to add

0 AS [3PL Qty] to the first source table and

0 AS [Qty] to the second table

Thanks,

Vitalii

View solution in original post

15 Replies
rubenmarin

Hi Prabu, that looks like  concatenation, not a join:

TableName:

Load * From source1;

Concatenate LOAD * From Source2;

https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/ScriptPrefixes...

prabunakil
Contributor III
Contributor III
Author

But both source header row is different naming.

niclaz79
Partner - Creator III
Partner - Creator III

In your picture the column names are all the same, not sure what you mean.

Otherwise just rename the columns in your sources to be the same.

prabunakil
Contributor III
Contributor III
Author

Full Outer Join.JPG

rubenmarin

You can use 'as' to remane column names:

LOAD Material,

     Batch as [Combine Batch],

     Qty

From Source1;

Concatenate

LOAD Material,

     [3PL Batch] as [Combine Batch],

     Qty

From Source2;

niclaz79
Partner - Creator III
Partner - Creator III

Source1:

LOAD

     *,

     Batch as [Combined Batch]

FROM ....;

Concatenate(Source1)

LOAD

     *,

     [3PL Batch] as [Combined Batch]

FROM ....;

jobsonkjoseph
Creator III
Creator III

When tables with same field names are loaded, auto concatenation happens.

I think you are not sharing the correct table field names.

prabunakil
Contributor III
Contributor III
Author

Full Outer Join.JPG

sorry should be like this.

jobsonkjoseph
Creator III
Creator III

Ruben reply is correct, it'll get the required result Prabhu.