×
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.
I need to update a field in a table with the data coming from a secondary table.
I have used something like the following in the past to do this.
Update ITEMBL a
Set a.UUD1IB =
(Select Coalesce(Max(b.PAPPRDT),0) As ApprvDate
From PLNREQ b
Where b.PAPPRDT > 0 And
a.ITNBR = b.PITEM And
a.HOUSE = b.PWH)
My problem this time is that I only want to update the ITEMBL record if there is
a record in the UPDATELIST and the following query fails because not all the
items in ITEMBL are in the UPDATELIST. How would I modify this query to update
only the items that are in the UPDATELIST table?
Update ITEMBL t1
Set UUD1IB = (
Select NEW_THRU
From UPDATELIST t2
Where t1.HOUSE = t2.WAREHOUSE And
t1.ITNBR = t2.ITEM)
Any help would be appreciated.
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.