Pass IDs from Output of Container 1 as comma separated value in input of SQL query of Container 2.
select * from table_A
where ID in (new id's separated by comma)
and month_id between 202503 and 202509
UNION
select * from Table_A
where ID in (old id's separated by comma)
and month_id between 202509
d. month is already dynamic as derived from max date of TAble.
I need to figure out a way to pass id' dynamically from container 1
I haven't had a need to do this, personally, but i've read up on it a bunch. You can take a value.. in your case the output file name or specific value from the first container and pass that single value into the second container (to retain sequencing) and use a Dynamic Input tool to place that value into your SQL code in the exact spot you need it.
This knowledge article might help too: Modifying SQL Query using the Dynamic Input Tool:
Hope that helps, -Jay
User | Count |
---|---|
107 | |
82 | |
70 | |
54 | |
40 |