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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
YHC
Contributor II
Contributor II

Join the tables

Hi All,

I want to join four tables as following screenshot. I want to pick the rows in TABLE2, 3, 4  if their IDs are match with TABLE1, and left join those qualified table. How should I do?

I tried this:

[TABLE1 left join TABLE2 left join TABLE3 left join TABLE4 ],  but it didn't show the product0002 and 0003. Also, don't use WHERE ID='0001''0002''0003', cause the original dataset is too big to type all the ID manually.

Thanks!

Labels (1)
2 Replies
Tanish
Partner - Creator
Partner - Creator

Hello,

Can you try joining Table2, Table3 and Table4 First with Left join  then you can write Right join for Table1. 

[TABLE2 left join TABLE3 left join TABLE4   Right join TABLE1 ]

Hope this will work....🙂👍

Diego_780
Creator
Creator

Hi YHC,

I tried to copy your tables by inline loads in qlikview, and by doing this order and this type of Joins, I can get your result:

DiegoF_1-1689754016431.png

The result is what you expected:

DiegoF_2-1689754034449.png

 

But I´m pretty sure this only works with this data.

If you need help with more data let me know if I can try to assist you

Best Regards,

Diego