|
On Fri, 30 Aug 2002, Carel Teijgeler wrote: > something like this, perhaps: > > UPDATE inship SET SHTEL# = select CMTEL from arcust where SHCOMP=CMCOMP > and SHBRAN=CMBRAN and SHACC=CMACC and SHCODE='00' and SHTEL# = ' ' When I try this I get: Token CMTEL was not valid. Valid tokens: , WITH WHERE. and the cursor is on CMTEL. Why isn't file INSHIP needed in the select statement? All the SH* fields are from file INSHIP and the CM* fields are from file ARCUST. > On 30-8-02 at 10:36 James Rich wrote: > > >select SHTEL#,CMTEL from inship,arcust where SHCOMP=CMCOMP and > >SHBRAN=CMBRAN and SHACC=CMACC and SHCODE='00' and SHTEL# = ' ' > > > >What I want to do now is update the SHTEL# field in file inship with the > >value in CMTEL in file arcust according to the same conditions specified > >above. Anyone know how to do this in SQL? James Rich
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.