|
For upper case Rick suggested: Ucase(Field1) like '%MOR%' or UCASE(Field2) like '%MOR%' or UCASE(Field3) like '%MOR%' -----Original Message----- Subject: Re: SQL wildcard search no 'ands' needed. Field1 like '%mor%' or Field2 like '%mor%' or Field3 like '%mor%' if you want matches without case sensitivity, you're either looking for more ORs or some sort of conversion to uppercase. others may help in that respect On Tue, 22 Feb 2005 08:12:41 -0600 (Central Standard Time), Booth Martin <booth@xxxxxxxxxxxx> wrote: > I am sure my terminology is wrong, but I would like to use SQLRPGLE to > choose all of the records in a file that have a certain group of letters in > any one of three fields. > > for example, select the records that have "mor" in Field1, Field2, or Field3 > This would return records that had the words more, moron, Mort, mortgage, > amore, smores, or mortuary in any one of those three fields. > > I tried Where Field1 like %mor% and that appeared to work, but I can't > figure out how to and/or the clause to choose Field 2 & Field3. > > --------------------------------- > Booth Martin > http://www.martinvt.com > --------------------------------- > -- > This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list > To post a message email: MIDRANGE-L@xxxxxxxxxxxx > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/mailman/listinfo/midrange-l > or email: MIDRANGE-L-request@xxxxxxxxxxxx > Before posting, please take a moment to review the archives > at http://archive.midrange.com/midrange-l. > > -- This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/midrange-l or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.
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.