Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
marco_puccetti
Partner - Creator
Partner - Creator

Where Not Exists

Hello, can you help me to understand this script:

TABLE A:


LOAD IBAN,

  IBAN AS IBAN_KEY,

  STATO_TMP AS STATO

Resident FLUSSO_A;

Concatenate

LOAD IBAN,

  IBAN AS IBAN_KEY,

  'BLANK' AS STATO

Resident FLUSSO_B

WHERE NOT Exists(IBAN_KEY,IBAN);

In particular can you explain me how is it used the "Not Exits" formula and its meaning?

Thanks

3 Replies
awhitfield
Partner - Champion
Partner - Champion

It means that the data from the Concatenate part of the load will only be loaded if the IBAN,

  IBAN AS IBAN_KEY, are not already in TABLE A.

andy

JonnyPoole
Former Employee
Former Employee

"WHERE NOT Exists(IBAN_KEY,IBAN);"

this is going to check the IBAN value in each record in the 2nd load to see if that value already exists already in the list of all values that have been loaded and aliased as IBAN_KEY arlready in the first load.

So bascially it won't load the same IBAN value twice if its already been loaded.

marco_puccetti
Partner - Creator
Partner - Creator
Author

Thanks!