|
something like this:
where (char1 = case when :char1var > '%' then char1 else char1 end
--% means always include
or char1 = case when :char1var > ' ' then :charvar1 else char1 end)
--non-blank selects same character
and ...
...for all 19 single-character fields.
Index:
CREATE INDEX QTEMP/MASTER01 ON CUSTMAST (substring(NAME,1,1))
CREATE INDEX QTEMP/MASTER02 ON CUSTMAST (substring(NAME,2,1))
...and so on, 18 more times.
You could add a WHERE on CREATE INDEX to drop rows with blanks.
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.