I am using kettle to get data from one table (t1) and joining execute sql script tool (t2) and then making an insert/update in the same table (t1)
Here's my transform
table input tool
select stud_id,mark from student;
execute sql Script
select s.stud_id,ifnull(m.mark,0) as mark from mark as m inner join student as s on (s.stud_id=m.stud_id) where s.student_id='?'
fields: stud_id
insert/update tool
- table: student
- check: stud_id=stud_id
- update: mark=mark
When I run this, it's successfully running but the values are not inserted or updated in target table.