Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rushmore optimization - index composed of 2 fields
Message
From
07/01/2009 09:12:43
 
 
To
07/01/2009 08:11:15
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01371601
Message ID:
01371671
Views:
21
>>Hello,
>>
>>I have a table with some fields including LNAME and FNAME (Lastname/Firstname).
>>One index on LNAME+FNAME
>>
>>I want to make several requests :
>>- only lnames beginning with... (SELECT * FROM t1 WHERE LNAME="A")
>>- both lnames and fnames begining with..(SELECT * FROM t1 WHERE LNAME="A" AND FNAME="B")
>>
>
>For your second query, you could use something like:
>
>WHERE LNAME+FNAME = PADR("A", LEN(LNAME)) + "B"
>
>Tamar

Tamar,
VFP can not optimize "f1(field) = f2(field)" for any index is created.
Previous
Reply
Map
View

Click here to load this message in the networking platform