On Fri, May 7, 2010 at 3:43 PM, Kurt Wendt <[email protected]> wrote:
> ...and, yet - the SAME Query would work FINE under VFP7. And, it's
> driving me NUTS that I can't figure out WHY!
>
> This is the Select Statement:
>        SELECT  invoice, store, style, color, PPitem, ;
>                        LineGroups, Sum(ShpTot) AS ShpTot ;
>                From &CurrTmpFile.  ;
>                Where !EMPTY(AstFlag)  ;
>                Group By Store, PPitem  ;
>                Into Cursor InvLn_Sums
>
> The Error message I get is the following:
>         SQL: GROUP BY clause is missing or invalid.
>
-------------------------

SELECT  invoice, store, style, color, PPitem, ;
                        LineGroups, Sum(ShpTot) AS ShpTot ;
                From &CurrTmpFile.  ;
                Where !EMPTY(AstFlag)  ;
                Group By invoice, store, style, color, PPitem, ;
                        LineGroups ;
                Into Cursor InvLn_Sums


Do you really need an invoice #  to total on?



-- 
Stephen Russell

Sr. Production Systems Programmer
CIMSgts

901.246-0159 cell

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to