Pass IDs from Output of Container 1 as comma separated value in input of SQL query of Container 2.
- We have a control container in Alteryx 2024 which prepares a list if EMP_ID as output after all transformation which can be stored as Alteryx DB, excel, etc.
- which is then compared with master list to check for new and old, New not present in master and Old - already present in master.
- 2nd container has an input as SQL query oracle database
- we need to pass the output EMP_ID as comma separate value obtained in point 1 as input in where clause of SQL query of input of Container 2.
- we have 02 queries as union
- New ID are to be passed, and data are to be fetched for 06 months
- for old id data needs to be fetched for 01 months
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