Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Difficult index
Message
De
05/06/2006 13:25:28
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
01127110
Message ID:
01127145
Vues:
19
Thanks Sergey, that worked fine.

Borislav - I tried your suggestion first because it was simpler but it placed the trailing alpa set after the group without the trailing alpha.

Thanks to both of you.

>Try
>index on left(sponsor_id,4) + str(val(substr(sponsor_id,5,8))) + ;
>             PADR(CHRTRAN(substr(sponsor_id,5,8), [0123456789], []), 4)...
>
>
>>I need to index a field that contains values like:
>>
>>RTA-1
>>RTA-2
>>RTA-3
>>RTA-3a
>>RTA-10
>>RTA-10a
>>RTA-10b
>>
>>etc. How would you construct an index statement that would sort in the order shown?
>>
>>index on left(sponsor_id,4) + str(val(substr(sponsor_id,5,8))) to temp
>>
>>almost works but misses the alpha in the last position.
>>
>>
>>Thanks
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform