How to return only text matching query criteria

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • postman
    New Member
    • Nov 2008
    • 63

    How to return only text matching query criteria

    Is there a way to only return the text from a field that matches the criteria?

    For example, if the criteria for the query is "Like *########*" (any 8-digit numbers at any position in the field), and there is a record where the field contains this text: "for customer #99999999 calling about an issue", can you return just the "99999999" part in the query?

    Thanks.
  • ChipR
    Recognized Expert Top Contributor
    • Jul 2008
    • 1289

    #2
    It may be possible, depending on your situation. You could create a function which returns only the numeric parts of a string and call it in your query for each record. Be careful, since too much of this could slow the query significantly.

    Comment

    Working...