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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How "not exists()" work in update of incremental load ?

Please any one explain "exists" and "not exists" with some example to better know how its work.

6 Replies
swuehl
MVP
MVP

Sorry, I don't understand what you are asking for.

In general, the EXIT SCRIPT statement is documented in

Exit script ‒ QlikView

Anonymous
Not applicable
Author

We are use "not exit"  function for update logic in incremental load.  I want to know how its work.

Please find the image. Incremental_Load_Qlikview_7.png

trdandamudi
Master II
Master II

I guess you meant Exists and Not Exists ? if it is then below is a quick example from Qlikview help:

Exists:

Employees:
LOAD * inline [
Employee|ID|Salary
Bill|001|20000
John|002|30000
Steve|003|35000
]
(delimiter is '|');

Citizens:
Load * inline [
Name|Address
Bill|New York
Mary|London
Steve|Chicago
Lucy|Paris
John|Miami
]
(delimiter is '|');

EmployeeAddresses:
Load Name as Employee, Address Resident Citizens where Exists (Employee, Name);

Drop Tables Employees, Citizens;

When the script is creating the EmployeeAddresses table, it will make sure that the Employee name in "Citizens" table match the Employee in "Employees" table. So the result is as below:

Bill, New York

John, Miami

Steve,Chicago

Not Exists:

Employees:
LOAD * inline [
Employee|ID|Salary
Bill|001|20000
John|002|30000
Steve|003|35000
]
(delimiter is '|');

Citizens:
Load * inline [
Name|Address
Bill|New York
Mary|London
Steve|Chicago
Lucy|Paris
John|Miami
]
(delimiter is '|');

EmployeeAddresses:
Load Name as Employee, Address Resident Citizens where Exists (Employee, Name);

Drop Tables Employees, Citizens;

Not Exists is opposite to Exists function. So When the table Employee Addresses is creating, It will give you the names that are not in the "Employees" table. The result will be as below:

Mary, London

Lucy,Paris.

Hope this helps...

Exists ‒ QlikView

swuehl
MVP
MVP

Then you need to look for EXISTS() function:

Exists ‒ QlikView

Also search the forum, and have a look e.g. at

Re: where not exists and only get one line

It's most important to understand that the symbol table (i.e. the field values to test against) will be updated after each record loaded.

Do you have any specific issues with EXISTS() function and incremental loading data?

Anonymous
Not applicable
Author

Thank you very much.

Anonymous
Not applicable
Author

Thank you very much.