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: 
Anonymous
Not applicable

How to do left-outer join and right-outer join in a single read?

I have two input files. One is a main, the other is a look-up. Is there any way to do a left-outer join and a right-outer join without reading the input files twice?

Labels (2)
3 Replies
Anonymous
Not applicable
Author

Hi 
No, you have to do the join two times, and merge the two result, filter the duplicated rows. With a small data set, you can read the data only one time from the files and store them into memory first, read them from memory when doing join. eg:
tFileINputDelimited1--main--tHashOutput1
    |
tfileInputDelimited2--main--tHashOutput2
    |
onsubjobok
    |
tHashInput1--main--tMap--.....
                                |
                            lookup
                                |
                        tHashInput2

Best regards
Shong
Anonymous
Not applicable
Author

Thanks for the quick reply!

However, I'm dealing with 5 million+ rows of data. Any best approach that you can suggest without compromising on the performace?
Anonymous
Not applicable
Author

No other way can achieve it with best performance, you have to read the data two times.