how can I re-write the sript to update just the rows returned from the select statement?