We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Importing data with from SQL based on a date defined by existing .yxdb

goatley1
8 - Asteroid

I have a data set that I'll be updating daily.  The original data set is maintained in SQL and updated in near real time.  For efficiency, I want to only import the new records, or the delta from the existing .yxdb to the current SQL status.  How can I grab a max date from the existing .yxdb and then leverage that as a variable to import transactions after that date from SQL?  In all other languages I would simply pass a variable that is defined by start_date = max(df.datefield).  I'm at a loss for how to pass this to the input tool.  Note: I'm a very new user with experience in Python, R, and other modified scripting languages.

2 REPLIES 2
geraldo
13 - Pulsar

hi.
Example:

 

1 read the .yxmd file - input data tool

2 summarize tool max date

3 configure dynamic input tool with 

 

geraldo_0-1682017856613.png

geraldo_4-1682018126831.png

 

dynamic input sql:

geraldo_1-1682017934885.pnggeraldo_2-1682017988836.png

 

geraldo_3-1682018050839.png

 

goatley1
8 - Asteroid

Thanks,  for the swift reply.  This completely solved my problem.  Other posts on this topic were overly complicated.

Labels
Top Solution Authors