update originalsalesdata a 
set customerid=dtid,customerclear='N' 
where a.salesdatafileid=%salesdatafileid