× 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.



Michael, did you try this syntax first? I don't think it could ever work.

1. acnm_name1 in the SET clause does not come from anywhere
2. There is a mix of *SYS and *SQL naming
3. The WHERE clause has no logical comparison operator (predicate, IIRC)

Is this syntax from another RDBMS?

Later, dude
Vern

At 10:35 AM 4/4/2006, you wrote:

Correction...

UPDATE jacfiles.agcy_ext
SET bus_name = acnm_name1
WHERE (SELECT acnm_name1
        FROM rugr80dat/pmspag00
            JOIN jacfiles.agcy_ext
            ON agcy_mco = mco and agnm_agcy = agcy
      )

Michael Schutte
Work 614-492-7419
email  michael_schutte@xxxxxxxxxxxx



             "John Candidi"
             <jacandidi@rutger
             sinsurance.com>                                            To
             Sent by:                  "'Midrange Systems Technical
             midrange-l-bounce         Discussion'"
             s@xxxxxxxxxxxx            <midrange-l@xxxxxxxxxxxx>
                                                                        cc

             04/04/2006 11:24                                      Subject
             AM                        FW: Another SQL question


             Please respond to
             Midrange Systems
                 Technical
                Discussion
             <midrange-l@midra
                 nge.com>






I know the following sql syntax is not correct (I'm new at attempting SQL)
but this is what I want to do. I am attempting to pull the field acnm_name1
from rugr80dat/pmspag00 table and put it into the bus_name field in the
jacfiles.agcy_ext table. These 2 files are tied by agcy_mco=mco and
agnm_agcy = agcy. Any help (without laughing) would be appreciated.





UPDATE jacfiles.agcy_ext r1

SET bus_name = acnm_name1

WHERE EXISTS (SELECT 1 FROM rugr80dat.pmspag00 r2)

WHERE r1.mco = r2.agnm_mco and r1.agcy = r2.agnm_agcy



John A Candidi

Rutgers Insurance Companies

IT Director - AS/400 Manager

856-779-2274





--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


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.