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



UPDATE MYFILE SET DOCNUM = (DOCNUM - 27000) + 72000 WHERE DOCNUM
between 27000 and 27200 Something like that should work. Copy the file to another library and give it a try.

Pete Helgren


Mark Allen wrote:
I have 3 PF's where for a range of #'s I need to "fix" that #

Example


Field: DOCNUM

if DOCNUM is in the range 27000 to 27200 and the field DATE=20061120 then I
need to change the DOCNUM field to 72000 to 72200 (the first 2 digits are
transposed and need reversed)

I'd like to do this thru SQL (I need to do it after tonights save) but not
doing a lot with SQL (I did the SELECT's OK interactively). This is a one
time shot and don't really want to write programs to do it if I can help it.


I've done simple UPDATES but not changing just a "part" of a field.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.