I have a fairly large SQL query that I'm trying to combine with a SCAN/REPLACE.
What I'm trying to do is set material.duedate to the same value as labor.startdate for each record, in the entire recordset from the query. Does anyone have an example they could share? So far my attempts have been embarrassing failures.
Code:
SELECT material.orderno, material.pn, material.wc, material.duedate, labor.status, order.status, labor.startdate, labor.pn
FROM (labor INNER JOIN material ON ((labor.orderno=material.orderno) AND (labor.lineitem=material.lineitem)) AND (labor.wc=material.wc)) INNER JOIN order ON labor.orderno=order.orderno
WHERE order.status='A''
What I'm trying to do is set material.duedate to the same value as labor.startdate for each record, in the entire recordset from the query. Does anyone have an example they could share? So far my attempts have been embarrassing failures.