How can I tie the update table to a table in the subselect to ensure the update takes place on the correct rows. Example:
Update RDS_RFID_DATA
Set task_nbr =
(Select c.task_nbr
from RDS_RFID_DATA a, RDS_BLDG_AREA b,
INV_TASK c
Where a.loc_nbr = b.loc_nbr
And a.bin(1:3) = b.whse_aisle
And a.bin(4:2) = b.whse_bin
And a.bin(6:1) = b.whse_lvl
And a.bin(7:1) = b.whse_sect
And b.bldg_area_nbr = c.bldg_area_nbr)
Where rds_RFID_DATA.bin = ???
Update RDS_RFID_DATA
Set task_nbr =
(Select c.task_nbr
from RDS_RFID_DATA a, RDS_BLDG_AREA b,
INV_TASK c
Where a.loc_nbr = b.loc_nbr
And a.bin(1:3) = b.whse_aisle
And a.bin(4:2) = b.whse_bin
And a.bin(6:1) = b.whse_lvl
And a.bin(7:1) = b.whse_sect
And b.bldg_area_nbr = c.bldg_area_nbr)
Where rds_RFID_DATA.bin = ???