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



> Note: the above will only work if TableTwo has one and only 
> one row with that same CommonID as TableOne.  If TableTwo 
> doesn't have a matching row, the TableOne.field1 must be null 
> capable or you'll need to make use of coalease.

I believe I have taken care of that with a previous DELETE in the job
stream.  Here's the whole thing:

--
-- Delete if no item message or no longer valid
--
DELETE FROM IMIMSG WHERE IMMSG = '' OR
                         IMACRC = 'D' OR
                         IMITEM NOT IN (SELECT ITNBR FROM DMITMMST);
--
-- Update active code to match current item master
--
UPDATE IMIMSG
  SET IMIMSG.IMACRC = (SELECT DMITMMST.ACREC
                       FROM DMITMMST
                       WHERE DMITMMST.ITNBR = IMIMSG.IMITEM
                       );

I'm still testing it out, but I think it's working.

I feel like I'm reaching the dangerous stage with this stuff. <g>

In all honesty, once I really get the syntax down, it's almost scary how
easy this is.  I feel like I'm missing something. 


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.