Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
noman212
Creator III
Creator III

Hash Function

Hi Friends,

i made a QVD with incremental load Insert update the records insert in qvd on daily basis, in my database password field update when user changes their password.

The changed in password feild not update in my QVD.

How can i apply hash funtion so that i get updated value.

Regards

Noman khan

1 Solution

Accepted Solutions
fkeuroglian
Partner - Master
Partner - Master

Hi

you have to create a code using hash function like this:

Hash128(FIEDL1,FIELD2,FIELDn) as %KHash,

then when you load the new data create another field using hash again and put %KHash2

then load and put a where clause

load *

from...

WHERE not exists (%KHash2, %KHash);

only will be load the value that have some change in the hash or are new

good luck

Fernando

View solution in original post

3 Replies
Gysbert_Wassenaar

See this blog post: http://www.qlikfix.com/2014/03/11/hash-functions-collisions/


talk is cheap, supply exceeds demand
fkeuroglian
Partner - Master
Partner - Master

Hi

you have to create a code using hash function like this:

Hash128(FIEDL1,FIELD2,FIELDn) as %KHash,

then when you load the new data create another field using hash again and put %KHash2

then load and put a where clause

load *

from...

WHERE not exists (%KHash2, %KHash);

only will be load the value that have some change in the hash or are new

good luck

Fernando

noman212
Creator III
Creator III
Author

Thankyou fkeuroglian for your reply m going to implementing according to yours suggestion. if required i will take your help