Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Indexing Question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00291268
Message ID:
00291290
Vues:
17
Assuming that the ref# field is a numeric type (say n(10,0)) and the date field is of a date type, you could index on the following expression:
DTOS(datefield) + PADL(ref#,10,'0')
then just
SEEK DTOS(dateyourlookingfor)
and do whatever processin you like
WHILE datefield = dateyourlookingfor

>I have a ledger detail table that lets say has 500,000 records. I have one index on date and ref#.
>
>Isn't there a way to select records for a given date range from this table without regard to the ref# quickly?
>
>I am finding that unless the search expression matches the index expression exactly this could be a slow process. Isn't it possible some way to "jump into" the table for a search routine at a particular date and then "jump out" of the search routine after a specific date since date is the first field of the index tax?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform