UPDATE Agent
SET Agent.worktype = (select tbl_Agent_List.worktype
from tbl_Agent_List
WHERE ((tbl_Agent_List.center = 'SAN') AND
(Agent.agent_id = tbl_Agent_List.agentid)))
where (substr(Agent.datetime,1,10) = SYSDATE - 1);
It works if subqury returns not more then 1 row per Agent row. If...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.