I am trying to execute this script but I get an error:
update CUSTREL set PREFSTORE = EMPLOYEE.STORENUM where EMPLOYEE.NUM=CUSTREL.PREFSLSP
Basically I want to update the customer's preferred store location based on the assigned store location of their preferred salesperson. My tables (in a nutshell) are as follows:
CUSTREL
<PrefSlsp>
<PrefStore>
EMPLOYEE
<Num>
<StoreNum>
What script can I use to accomplish this simple task?
update CUSTREL set PREFSTORE = EMPLOYEE.STORENUM where EMPLOYEE.NUM=CUSTREL.PREFSLSP
Basically I want to update the customer's preferred store location based on the assigned store location of their preferred salesperson. My tables (in a nutshell) are as follows:
CUSTREL
<PrefSlsp>
<PrefStore>
EMPLOYEE
<Num>
<StoreNum>
What script can I use to accomplish this simple task?