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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
knight_rider2905
Contributor
Contributor

Schedule data pull from DB

I'm pulling data from db of last week every Monday, having start and end date in query. I want to schedule this activity so that manual intervention is not needed for pulling data.

I want to understand how we can use current date function to schedule this job or is there any other way to schedule this activity.

1 Reply
denisb
Contributor III
Contributor III

You can use today() as Date in your SQL .

For example: 

LET currentDate = today();

SQL select * from myTable where date >= $(currentDate) - 7 days;

 

You can also use your current date from SQL Server and just schedule the Qlik Sense Task on every monday.