Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Select for a Report
Message
De
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:
00764026
Vues:
29
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform