Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Datetime index
Message
 
 
To
09/01/2009 03:39:58
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
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01371974
Message ID:
01372294
Views:
16
>OK
>
>Table with datetime field (more than 10,000,000 lines).
>
>I have to rerieve the following ranges by indexs:
>
>Dates
>Time for specific date
>Time from date X to date Y.
>
>Other question is that most of the times (99.9%) I need the time index only the last three month, and the index date only for last two years, do I have to create huge index for all the table?

In our cases we're using just one index on datetime. If we need to get all records for specific date we use

between date() and dttot(date()+1)-1.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform