|
This is a multipart message in MIME format. -- [ Picked text/plain from multipart/alternative ] I really didn't pour over your code but DESC is a reserved word and you might have to put double quotes around it. DESC = descending Rob Berendt -- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." Benjamin Franklin "Weatherly, Howard" <hweatherly@dlis.dla.mil> Sent by: midrange-l-admin@midrange.com 03/28/2002 02:17 PM Please respond to midrange-l To: "Midrange-L (E-mail)" <midrange-l@midrange.com> cc: Fax to: Subject: More Sql Questions 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 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.