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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Inner Join and Concatenate

Data is currently being pulled from two locations. For instance, there is an Items table USA and Europe and Orders table USA and Europe.

In order to create one items table and one orders table I must perform concatenations to combine data from both databases.

Afterward I want to perform and inner join on tables Items and Orders, but am not able to due to concatenations.

ItemTable:

Load

ItemID,

'USA' As Loc;

SQL Select *

From Items;

Concatenate(ItemTable)

Load

ItemID,

'EU' As Loc;

SQL Select *

From Items;

Inner Join (ItemTable)

OrderTable:

Load

OrderID,

ItemID;

SQL Select *

From Orders;

Concatenate(OrderTable)

Load

OrderID,

ItemID;

SQL Select *

From Orders;

This code does not seem to work though. Any suggestions would be greatly appreciated.



4 Replies
spsrk_84
Creator III
Creator III

Hi,

1) Convert the Orders Table and Items into Qvd's and then do the inner join but before that drop the actual raw database tables.

2) Else while fetching the data from database tables itself do the union operation on tables

LIke

Load

ItemID,

LOC;

Select ItemID,Loc from Items

union

Select ItemID,Loc from Items

Try the above two steps hope ur problem will be resolved.

Not applicable
Author

Thank you... I will try the qvd approach and let you know my results.

Not applicable
Author

Just wanted everyone to know this worked... Thank you to everyone for their help.

Not applicable
Author

Just wanted everyone to know that the QVD approach worked wonders. Thank you everyone.