Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Select for a Report
Message
 
 
À
10/03/2003 20:11:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00763620
Message ID:
00764027
Vues:
25
João,

In GROUP BY and SORT BY clauses of a query you specify columns either by name
GROUP BY customer, material
or by order in the select list
SELECT customer, material, ...
...
GROUP BY 1,2
>Hi Sergey,
>
>I solved the problem like this, your tips help me
>
>
>SELECT *, ;
>    SUM(IIF( ficmvmp.movimento <= 49, Quantidade, 0)) AS Qin, ;
>    SUM(IIF( ficmvmp.movimento >  51, Quantidade, 0)) AS Qout ;
>    FROM ficmvmp ;
>    left outer join ficmater ;
>    on material = artigo ;
>    left outer join ficmolde ;
>    on terceiro = val(ficmolde.molde) ;
>    group by 1,2,material;
>    INTO CURSOR STK_TMP
>
>
>What i don't understand is group by 1,2 ????.
>
>Thank's for all your time, i'm relly newbie with SQL Select more complex.
>
>João
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform