Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Select for a Report
Message
From
10/03/2003 20:11:14
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00763620
Message ID:
00764026
Views:
30
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform