Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Indexing Question
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00291268
Message ID:
00291290
Views:
18
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?
Previous
Reply
Map
View

Click here to load this message in the networking platform