|
<<SNIP>>
I'm wondering about the APTSCAN file. I know I've been clobbered
in the past when passing a "LIKE" pattern into embedded SQL, where
the blanks at the end of the field become part of the search
string.... Perhaps you need to make your APTSCAN.APTSCANDEF field
varying length, so that your scan tokens do not carry unwanted
blanks.
However, this would not explain why YOU get the results you are
looking for....
Alan Shore wrote:
> 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.%
<<SNIP>>
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.
I then sent the above SQL to an associate who has to do something similar. He ran the same sql and the results were
COMPLETELY different
<<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.