Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A database challenge
Message
From
04/03/2008 01:53:15
Walter Meester
HoogkarspelNetherlands
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01295541
Message ID:
01298353
Views:
38
>>
select FirstName, LastName, Address, City, State, Zip
>>     from Customers where state= 'NY' and city like '%ISLAND%'  AND ADDRESS LIKE '%BLVD%'
>>
>>Yeah, that's optimizer-friendly. But how are you going to generate it in your SP?! That looks more like SPT to me.
>
>Is LIKE %Something% optimizable??? I thought only LIKE 'Something%' optimizable.

Yes, through an index scan.. and index scan is something VFP does not have. It scans the index file for anything that matches the LIKE expression. It is more effective than a table scan, but less effective than an index seek.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform