I'm getting an error when trying an update with a join in db2 that 'inner' is not expected and that it is instead expecting 'set'.
Looking at the query I understand what it is saying but I'm confused: Can you not do a join in an update on DB2?
I'm usually using MySQL but this script has to run against a db2 database and I've never come across this issue but it seems like it should be correct using db2 for iseries 7.2
UPDATE data d
inner join sales s
ON d.sku_id = s.id
SET expire_date = (to_date(:SHIPDATE, 'YYYYMMDD') + 127 DAYS) ,
quantity = cast(:QUANTITY as int)
WHERE d.custID = cast(:cust as int)