I have an SQL that I ran on our teradata and Oracle databases and was wondering what the syntax would be for informix. I get an syntax error on informix that seems to be from my using the FROM statement. Here is the SQL I am trying to run.
UPDATE e
FROM dsx_tables.inventory_history i, dss_tables.e_inventory_history e
SET qty_on_hand = i.qty_on_hand,
qty_on_order = i.qty_on_order,
qty_on_backorder = i.qty_on_backorder,
qty_on_reserve = i.qty_on_reserve,
unit_cost = i.unit_cost
WHERE e.date_loaded = i.date_loaded
AND e.branch_id = i.branch_id
AND e.sim_mfr_no = i.sim_mfr_no
AND e.sim_item_no = i.sim_item_no
AND date_loaded in ('01/06/01','01/05/01')
TIA
Craig
UPDATE e
FROM dsx_tables.inventory_history i, dss_tables.e_inventory_history e
SET qty_on_hand = i.qty_on_hand,
qty_on_order = i.qty_on_order,
qty_on_backorder = i.qty_on_backorder,
qty_on_reserve = i.qty_on_reserve,
unit_cost = i.unit_cost
WHERE e.date_loaded = i.date_loaded
AND e.branch_id = i.branch_id
AND e.sim_mfr_no = i.sim_mfr_no
AND e.sim_item_no = i.sim_item_no
AND date_loaded in ('01/06/01','01/05/01')
TIA
Craig