I'm trying to insert a key value into the last field in the row (new_lead.)
This is based on data that we have collected over time from clients. I keep having issues getting it to work. I'm not sure how to code it at this point, based on the error
'Error Code : 1248
Every derived table must have its own alias"
UPDATE (SELECT new_lead
FROM client_testc
LEFT OUTER JOIN lead_infoc
ON client_testc.First_Name=lead_infoc.fname
AND client_testc.Address1=lead_infoc.address
AND client_testc.City=lead_infoc.city
AND client_testc.State=lead_infoc.state
WHERE lead_infoc.fname IS NULL
AND lead_infoc.address IS NULL
AND lead_infoc.city IS NULL
AND lead_infoc.state IS NULL)
SET new_lead='y';
This is based on data that we have collected over time from clients. I keep having issues getting it to work. I'm not sure how to code it at this point, based on the error
'Error Code : 1248
Every derived table must have its own alias"
UPDATE (SELECT new_lead
FROM client_testc
LEFT OUTER JOIN lead_infoc
ON client_testc.First_Name=lead_infoc.fname
AND client_testc.Address1=lead_infoc.address
AND client_testc.City=lead_infoc.city
AND client_testc.State=lead_infoc.state
WHERE lead_infoc.fname IS NULL
AND lead_infoc.address IS NULL
AND lead_infoc.city IS NULL
AND lead_infoc.state IS NULL)
SET new_lead='y';