|
<<SNIP>>
The project is to attempt to "pull" this data out and place
into a separate field. I came up with the following idea:
I have a file (APTSCAN) with one 12 character field (APTSCANDEF)
containing (at the moment) the following data, % characters
included:
%APT %
%APT #%
%APT. #%
%APT.%
%BLDG%
%DEPARTMENT%
%DEPT %
%FLOOR %
%FLR %
%FLR.%
%P O BOX%
%P.O. BOX%
%PO BOX%
%PO.BOX%
%POBOX%
%ROOM %
%UNIT %
%UNIT #%
I then ran the following SQL statement
SELECT * FROM custadrp a, APTSCAN b
WHERE a.CADD1 like b.APTSCANDEF or
a.CADD2 like b.APTSCANDEF
and it worked perfectly. All the relevant customer records
were displayed.
<<SNIP>>
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.