In Oracle, I'm trying to update a a field in one table based off calculations from fields in a second table and I can't seem to get any syntax to work.
For example,
Update item1 i1, item2 i2
Set i1.min_qty = i2.cases * i2.qty_per_case
Where i1.item_id = i2.item_id
And i1.flag1 = 'Y'
The relationship between i1.item_id
and i2.item_id
is one to one.
Any help would be greatly appreciated.