|
> Jeff, > > Depends on what percentage need updating.. > > If 10%, the yes it would (probably) be better to only update > the ones that need it. > If 90%, the it would be (probably) be better to update all of them. OK, that makes sense. That's how I would expect it in RPG land. > As far as checking first, here's an example: > UPDATE IMIMSG > SET IMIMSG.IMACRC = (SELECT DMITMMST.ACREC > FROM DMITMMST > WHERE DMITMMST.ITNBR = IMIMSG.IMITEM > ) > where imimsg.imitem in (select imimsg.imitem > from imimsg, dmitmmst > where imimsg.imitem = dmitmmst.itnbr > and imimsg.imacrc <> dmitmmst.acrec > ) You lost me there. I append this where clause to my existing statement? Or replace the existing where clause? The SQL book I ordered just arrived. I hope some solid reading will clear some of this up. Thanks again for all your help.
This mailing list archive is Copyright 1997-2026 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.