Is there a simpler method to update one file with data from another using a foreign key? Maybe with a join or exists ??

This works but seems a bit unintuitive.

Note: chs# and newgav# are from file c1, all other fields are from CLIENT file.

update jstone/client

set AMNGRNM = (select newgav# from jstone/c1 where ACLNMBR = chs#)

where ACLNMBR = (select chs# from jstone/c1 where ACLNMBR = chs#)


This outbound email has been scanned for all viruses by the MessageLabs Skyscan service.
For more information please visit

This thread ...

Return to Archive home page | Return to MIDRANGE.COM home page