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

Join with null value

Hello,
I have to join between data sources tables E and A. 
Table E has 4 columns ( E_A , E_B , E_C , E_D )  which I need to join to ( T_A , T_B , T_C , T_D ) from Table T and get the ( T_ID ) 
My columns of Table E can have 1, 2 or 3 null values. For example I can have E_C = null but the Other are completed.
I thought that with an “outer left join” I can get the wright T_ID even if I have one field with null value. However, it gets the wright T_ID when all fields are not null and 0 when one or more of the columns are missing.
How can I join lines even if I have 1, 2, 3 or 4 not null fields and recover the right to T_ID all the time?

Thank you

Labels (2)
1 Reply
Anonymous
Not applicable
Author

I'm not sure I entirely understand this situation fully, but a workaround to joining nulls would be to find a value that is unique and replace all nulls with that value before you do the join. In Oracle you might use the NVL function to do this. In Talend you simply want to replace where the value is null.

For example, in Talend you could use something like this to prepare your data.....

row1.myVal==null ? "NULL" : row1.myVal