× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



If you do not identify the connection between the files in both the
select statement following the equal sign and in a where clause the
system will attempt to update every record with every value and this
will cause a null condition to occur. The real purpose is record
selection - the where clause tells the system which record to update,
the equal clause tells it what value to use.


John Arnold
(301) 354-2939


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of
Peter.Colpaert@xxxxxxxxxxx
Sent: Thursday, January 10, 2008 9:30 AM
To: Midrange Systems Technical Discussion
Subject: RE: SQL Update with Join

John,

I thought the where clause was there to avoid possible null values?

Peter Colpaert
Application Developer
PLI - IT - Kontich, Belgium
-----
Yoda of Borg are we. Futile is resistance, assimilated will you be.
-----



"John Arnold (MFS)" <jarnold@xxxxxxxxxxxxxxxxxxxxxxxxxx>
Sent by: midrange-l-bounces@xxxxxxxxxxxx
10/01/2008 14:56
Please respond to
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>


To
"Midrange Systems Technical Discussion" <midrange-l@xxxxxxxxxxxx>
cc

Subject
RE: SQL Update with Join






You need to identify the connection between the files both within the
parentheses and without so the following should work.

Update inv
Set inv.feat = (select wcs.feat from wcs where wcs.vnd = inv.vnd and
wcs.mdl = inv.mdl) Where inv.vnd in (select wcs.vnd from wcs where
wcs.mdl = inv.mdl)


John Arnold
(301) 354-2939


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.