Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Improve a requery
Message
From
10/08/2003 17:58:07
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00818689
Message ID:
00818757
Views:
18
Give me this sum and count value of :
SELECT COUNT(*),SUM(Ncat) FROM Sum_Categ_per_periode
I think join is not optimizable, and query need to scan fixed subset of the full cartesian product of two table .

Only possible ( hard ) solution , but it could not be better, is with manual query, with use of data statistics ( like unique values, etc ).
This need partial query, expression index and a scan with internal
computation.
This can improve the speed, but only if the data are much correlate, and
this correlation you cannot explain to the query engine.

If a solution not exist, you need to redesign the structure of tables.

Fabio
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform