× 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 don't think you need the JOIN. You can have a correlated subquery, i.e.,
where the WHERE clause inside the subselect refers to a value or values
from the outer main query.

Also, the WHERE clause you have would apply to the subselect, not to the
UPDATE.

>Update XLCDBAP.UPC_XREF
>set MFR_PROD_DESC_9317=
>(select DESC from UDCIINP
>where MFR||ITM = MFR_ID_9336||MFR_ITM_9337)
>where MFR_PROD_DESC_9317 = ' '

At 02:17 PM 3/28/02 -0500, you wrote:
>This message is in MIME format. Since your mail reader does not understand
>this format, some or all of this message may not be legible.
>--
>[ Picked text/plain from multipart/alternative ]
>My brain is getting frazzled today and I am just not sure about this...
>
>We have a table UPC_XREF that has some rows that have a column which
>contains spaces, it should have been updated by a program that I ran but
>either those rows were duplicates (there are some) and did not get updated
>or I mucked something up! In either case I want to update the column
>MFR_PROD_DESC_9317 with the value in column DESC from another table UDCIINP.
>
>This is the query I am planning to use, but I need another opinion on wether
>I am going to get what I want, that is the column MFR_PROD_DESC_9317 in
>UPC_XREF where the value of the column is SPACE is updated with the DESC
>column from the corresponding row in UDCIINP  (I already know the value is
>there).
>
>Update XLCDBAP.UPC_XREF
>set MFR_PROD_DESC_9317=
>(select DESC from UDCIINP
>inner join DLCDBAP>UPC_XREF
>on MFR||ITM = MFR_ID_9336||MFR_ITM_9337
>where  MFR_PROD_DESC_9317 <>' ')
>
>Any insight or 2x4s upside my frazzled head appreciated!
>
>     Howard Weatherly
>        Systems Advisor
>Computer Task Group, Inc.
>
>hweatherly@dlis.dla.mil
>Howard_weatherly@ameritch.net
>Howard.Weatherly@ctg.com
>
>
>
>"luck favors those who prepare"
>
>_______________________________________________
>This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
>To post a message email: MIDRANGE-L@midrange.com
>To subscribe, unsubscribe, or change list options,
>visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l
>or email: MIDRANGE-L-request@midrange.com
>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.