Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Wildcard searching in SQL 7.0
Message
From
08/12/2000 15:30:48
 
 
To
08/12/2000 14:02:20
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00450892
Message ID:
00450953
Views:
37
Trey,

Thanks for the tip. I slight modification to your suggestion allows my users to search for any of 1-9 digits of the zip code:
where 1 in (patindex('84152%',zip), patindex('943%',zip), patindex('220461934',zip))
What experience do you have re: relative performance of this type of query?
Does this sort of pattern matching slow things down considerably? My core data is 2-5 million records.


>select au_id, au_lname, au_fname, zip
> from authors
> where 1 in (patindex('84152____',zip), patindex('94301____',zip))
Timothy D. Yeaney
MCSD, Charter Member
President, PAFOX (Potomac Area Fox User Group)
mailto:tim@eagleeyeinc.com
Vice President
Eagle Eye Publishers, Inc
Broaden Your Vision, Sharpen Your Focus
Previous
Reply
Map
View

Click here to load this message in the networking platform