Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select Group By
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00803720
Message ID:
00803747
Views:
6
Sergey,

So just so that I understand this in the future: each field in the Group By is looking for exact matches. So, all those fields listed in the Group By have to be the same - and if they are, the SUM(payamt) is performed on those items. Correct?

Mel Cummings

>You would group on all of them
SELECT employeid, lastname, firstname, payamt,  ;
 paydate, payhow, checknum,  SUM(payamt) ;
 FROM appdata!mydata ;
 GROUP BY employeid, lastname, firstname, payamt,  ;
 paydate, payhow, checknum
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform