2010/2/5 Ricardo Aráoz <[email protected]>: > > I think you overlooked ChrTran(). >
Or UNION and IsAlpha() SELECT * FROM MyTable where PartID = '12A456789-123' UNION SELECT * FROM MyTable where PartID LIKE '12A456789-_123' AND ISALPHA(SUBSTR(PartID,11,1)) UNION SELECT * FROM MyTable where PartID LIKE '12A456789-123_' AND ISALPHA(SUBSTR(PartID,14,1)) Note that unless all the prefix portions of the part numbers are the same length, the SUBSTR arguments might have to be calculated on the fly. -- Ted Roche Ted Roche & Associates, LLC http://www.tedroche.com _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

