Hi Guys,
I am new to Alteryx. I am in Alteryx Admin Design version 2019.4. I have an existing Workflow. It's output is SQL server TABLE_A_TEMP. It runs every 30 minutes with around 1000 records. There is another table A_TREND with around over 10,000 records. Actually, TABLE_A_TEMP is kind of a temp table, TABLE_A_TREND is the one we used for analytics.
The Post Create SQL Statement is like following. It is the same as update, insert if new to TABLE_A_TREND in my understanding.
delete from TABLE_ A_TREND
where exists
(select * from TABLE_ A
where TABLE_ A_TREND.my_unique_id = TABLE_ A_TREND. my_unique_id);
INSERT INTO TABLE_ A_TREND
SELECT * FROM TABLE_ A;
The output option is set to Overwrite Table.

The problem is whenever new calculated columns added in Altrery, new columns in TABLE_A_TEMP added. We have to manually add new columns in TABLE_A_TREND in order to have Post SQL statement run successfully. It is very tedious.
My question is if it is possible to have the output table set to TABLE_A_TREND, then set the option as update, insert if new (I didn't find it in my version.) And is it possible when there is new columns added in Alteryx, the workflow still works without manually add new columns in table design through SQL Editor.
What is the best practice to simplify the process in my scenario ?
I appreciate your help thank you.
Lydia