assuming I'm matching columns to tables right...

Try this, it is easily changed into an update...

select FLWORKC, FLPRODNO, BOMCHILD
from tfactlib/FLROUTG F
WHERE EXISTS (SELECT *
from factalib/BOMMSTR B on BM.BOMPARNT = F.FLPRODNO
join tfactlib/ildpf I on
B.BOMCHILD = I.ILDINO
where I.ILDDM1 >= .25
and B.BOMDATEF < 20120305
and B.BOMDATDS > 20120305
)
where F.FLWORKC = 3155

HTH,
Charles


On Mon, Mar 5, 2012 at 10:54 AM, Gqcy <gmufasa01@xxxxxxxxx> wrote:
The following SQL returns the list of records I want to update:

select FLWORKC, FLPRODNO, BOMCHILD
from tfactlib/FLROUTG
join tfactalib/BOMMSTR on BOMPARNT = FLPRODNO
join tfactlib/ildpf on BOMCHILD = ILDINO
where FLWORKC = 3155
and ILDDM1 >= .25
and BOMDATEF < 20120305 and BOMDATDS > 20120305


I want to "SET FLWORKC = 9155"









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

Replies:

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

This mailing list archive is Copyright 1997-2019 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].