I am trying to SUM values in a column where values in another column are the same.
Here is what I need, but I know the 5th line won't work:
Here is what I need, but I know the 5th line won't work:
Code:
UPDATE manufacturing_detail SET item_lead_time_1 = (SELECT SUM(cycle_time) FROM routing_workcenter WHERE routing_workcenter.routing = routing_workcenter.routing)<---HELP! FROM manufacturing_detail, routing_workcenter WHERE manufacturing_detail.item = routing_workcenter.routing
Comment