Hello. I am working with an informix db and am trying to add two new deduction to every employee that is in a specific group.
I have one table, deduction, that I need to add a deduction code (2020) to every employee in group 'B'. The group is stored only in the employeemaster table. The common link between the two tables is the emp number.
I tried this:
insert into deducton (ded_code)
values ('2020')
where emp in (select emp from employeemaster where group='B');
but that is giving me a syntax error on the values line.
I have one table, deduction, that I need to add a deduction code (2020) to every employee in group 'B'. The group is stored only in the employeemaster table. The common link between the two tables is the emp number.
I tried this:
insert into deducton (ded_code)
values ('2020')
where emp in (select emp from employeemaster where group='B');
but that is giving me a syntax error on the values line.