we are trying to update the operation types for all operation.resource_id=' qc testing', when we run the script below it updates all resources besides the the "qc testing" resource.
UPDATE OPERATION
SET
OPERATION_TYPE='QC TEST (TYPE1)',SETUP_HRS= '0',
RUN_TYPE= 'HRS/LOAD',
LOAD_SIZE_QTY= '99000',
RUN= '2',
MOVE_HRS= '166',
SETUP_COST_PER_HR = '0',
RUN_COST_PER_HR= '25',
RUN_COST_PER_UNIT= '0',
BUR_PER_HR_SETUP= '0',
BUR_PER_HR_RUN= '0',
BUR_PER_UNIT_RUN= '0',
BUR_PERCENT_RUN= '200'
FROM OPERATION
INNER JOIN WORK_ORDER ON WORKORDER_BASE_ID=BASE_ID
INNER JOIN PART ON PART_ID=ID
WHERE OPERATION.RESOURCE_ID='QC TESTING'
AND WORK_ORDER.STATUS='U'
OR WORK_ORDER.STATUS='R'
OR WORK_ORDER.STATUS='F'
any ideas?
UPDATE OPERATION
SET
OPERATION_TYPE='QC TEST (TYPE1)',SETUP_HRS= '0',
RUN_TYPE= 'HRS/LOAD',
LOAD_SIZE_QTY= '99000',
RUN= '2',
MOVE_HRS= '166',
SETUP_COST_PER_HR = '0',
RUN_COST_PER_HR= '25',
RUN_COST_PER_UNIT= '0',
BUR_PER_HR_SETUP= '0',
BUR_PER_HR_RUN= '0',
BUR_PER_UNIT_RUN= '0',
BUR_PERCENT_RUN= '200'
FROM OPERATION
INNER JOIN WORK_ORDER ON WORKORDER_BASE_ID=BASE_ID
INNER JOIN PART ON PART_ID=ID
WHERE OPERATION.RESOURCE_ID='QC TESTING'
AND WORK_ORDER.STATUS='U'
OR WORK_ORDER.STATUS='R'
OR WORK_ORDER.STATUS='F'
any ideas?