Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Indexes setup wrong - I think
Message
 
 
To
03/11/2005 12:06:26
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Miscellaneous
Thread ID:
01064984
Message ID:
01065096
Views:
19
>>You cannot sort records properly with the index like that.
>
>
>Can you explain your statement more? The sort is correct, when I look at the table with the index applied(sp?).

The ALLTRIMs lump everything together. IOW, the same combination could be created from totally different parts. For example
First Name  Last Name      INDEX ON ALLTRIM(FirstName) + ALLTRIM(LastName)
JON         ATHANWAN   --> JONATHANWAN
JONATHAN    SMITH      --> JONATHANSMITH
That index will put the second record first which is incorrect.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform