I have 17 queries like below .I want to execute below queries where eventyear is a variable and it's value needs to updated dynamically. e.g. eventyear=2021 would be passed from steps previous to executing this.
Could someone provide inputs how to achieve this in designer?
insert into stg_tbl(frm,to,event_year,amount) values('ABC','TEST',eventyear,1);
insert into stg_tbl(frm,to,event_year,amount) values('DEF','TEST',eventyear,1);
insert into stg_tbl(frm,to,event_year,amount) values('TEST3','TEST',eventyear,1);
insert into stg_tbl(frm,to,event_year,amount) values('TEST4','TEST',eventyear,1);
insert into stg_tbl(frm,to,event_year,amount) values('XYZ','TEST',eventyear,1);
insert into stg_tbl(frm,to,event_year,amount) values('LMN','TEST',eventyear,1);
Really appreciate the help.