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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Symmetric difference in load script

Hello, I need to load two tables, but i need the Symmetric difference between them in script load.

For example:

Table 1:

error loading image

Table 2:

error loading image

RESULT TABLE:

error loading image

Thanks 😉

1 Solution

Accepted Solutions
Not applicable
Author

hello,

read tab2 first, then read tab1 WHERE NOT EXISTS rows from tab1. EXISTS function is the key to success!

regards

View solution in original post

2 Replies
Not applicable
Author

hello,

read tab2 first, then read tab1 WHERE NOT EXISTS rows from tab1. EXISTS function is the key to success!

regards

Not applicable
Author

Thank you for your help,

I attach my script:

fruits1:
LOAD id
FROM ..\Datos\fruits2.csv (ansi, txt, delimiter is ';', embedded labels, msq);

fruits2:
LOAD id,
desc
FROM ..\Datos\fruits.csv (ansi, txt, delimiter is ';', embedded labels, msq)
WHERE not exists(id);

DROP TABLE fruits1;

Wink