Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using the LIKE operator 1

Status
Not open for further replies.

JanCampbell

Instructor
Jun 19, 2003
11
GB
Are there any known restrictions/problems with the LIKE operator?

I have a very simple selection formula:
{CONTACT.JOBTITLE} like "*director*" which is returning 0 records.

I have also tried:
{CONTACT.JOBTITLE} like "*" + "director" + "*" which also returns 0 records.

There are records in the database to match the criteria.

Any other options to try?

Thanks in advance for any help.
 
Is {CONTACT.JOBTITLE} actually in lower case like your post suggests?

Try this instead:

LCase({CONTACT.JOBTITLE}) like "*director*"

Your selection criteria is case sensitive. LCase forces lower case. Remember that the LIKE operand is not great for performance, as indices get ignored.

Naith
 
That has worked. Thank you very much. Didn't realise was case sensitive but am aware of performance issues - no way around though unfortunately.
Thanks for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top