Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Index on Date
Message
From
07/09/2007 09:40:38
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
07/09/2007 09:25:27
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01252976
Message ID:
01252989
Views:
19
>Hi,
>
>If I want to use SQL syntax to gather records within a date range, what is the best approach (that yields fastest response) to indexing date fields ?

What Sergey and Tore said is the ticket. Anything else is indexing on strings or numbers containing date in some format, and then you have the dependency on the chosen format. Which will come around and bite you sooner or later.

If you really need a date field in a composite index, then use dtos(datefield) - that's an unambiguous format (yyyymmdd).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform