Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Optimization
Message
 
To
09/11/2005 17:34:54
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01066940
Message ID:
01066995
Views:
12
SET DELETED ON?
if SET DELETED is ON you always can have Partial result, but with these 3 indexes the query will run faster than just with one.

>Boris,
>
>Copying, pasting and executing your expression gave me this result.
>
>---------------------------
>Microsoft Visual FoxPro
>---------------------------
>
>SELECT count(*) FROM MYTABLE WHERE MYTABLE.docid = 1 AND MYTABLE.cstatus <> "XXX" AND BETWEEN(TTOD(MYTABLE.ddate), tDateFrom, tDateTo) GROUP BY MYTABLE.caddress INTO ARRAY laCount
>Using index tag Docid to rushmore optimize intermediate result
>Using index tag Cstatus to rushmore optimize intermediate result
>Using index tag Ddate to rushmore optimize intermediate result
>Rushmore optimization level for intermediate result: partial
>---------------------------
>OK
>---------------------------
>
>It still saying partial, am I missing something here?
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform