Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Any ideas on speeding up this query
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01284133
Message ID:
01284186
Vues:
19
Do you have an index on ordsize.orderprodid?

>Naomi, I've tried the following:
>SELECT Ordsize.orderprodid,;
>  SUM(Ordsize.ordered) AS totordered,;
>  SUM(Ordsize.allocated) AS totallocated,;
>  SUM(Ordsize.shipped) AS totshipped;
> FROM ordsize ;
> GROUP BY ordsize.orderprodid
>The SYS(3054,11) Result is:
>Rushmore... NONE
>
>Then I tried, as per your suggestion:
>SELECT Ordprod.orderid, Ordsize.orderprodid,;
>  SUM(Ordsize.ordered) AS totordered,;
>  SUM(Ordsize.allocated) AS totallocated,;
>  SUM(Ordsize.shipped) AS totshipped;
> FROM ;
>     Ordsize ;
>    INNER JOIN ordprod ;
>   ON  Ordprod.orderprodid = Ordsize.orderprodid ;
> GROUP BY Ordsize.orderprodid, Ordprod.orderid
>Again the SYS(3054,11) Result is:
>NONE for both tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform