=CONCATENATE("update account set emterritory=(select id from area where sname='"&B2&"') where sname='"&A2&"';")