Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A database challenge
Message
 
 
To
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:
01298418
Views:
24
>>>
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.

Thanks, Walter.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform