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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
master_student
Creator III
Creator III

update pb

Hello community,

I have an update pb.

here is  the script : to get data for a year in my qvd

test:

load *;

select * from xx

where date > '2016-01-01'

store test into case.qvd

AND then every day at 5 am whene the database is accessible I execute a reload task via QMC to run this script

test:

load *;

select * from xx

where date > today ()-1 // get day-1 data

concatenate

load * resident case.qvd;// get the data from my qvd

store test into case.qvd

my probleme is my data contains a status field that change. whene I do as I mentionned above (using qvd) I didn't get status updated . I can't run the script for a year evey time because the database is not accessible all the day.

What do you suggest please as a solution.

Thanks

3 Replies
swuehl
MVP
MVP

Do your DB records hold a LastModified date field or something similar?

Something you can query to see which records changed?

master_student
Creator III
Creator III
Author

yes.

swuehl
MVP
MVP

Then I suggest that you use this field in your WHERE clause for the incremental update.

Have a look at case 3 here:

Using QVD files for incremental load ‒ QlikView