If you have enginebehavior 80 or 90, VFP will expect conformance to ANSI standard for grouping. You need to add aggregate functions to the non-grouped columns or add those columns to the group as Mr. Jarvis suggested.
-- rk -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Kurt Wendt Sent: Wednesday, July 18, 2012 1:37 PM To: [email protected] Subject: SQL & Grouping Problem... I'm getting this error - it claims that GROUP BY is Missing or Invalid. And, for the life of me - I don't see the problem. I've done Grouping before to Sum a particular column - so, just not sure why its not working this time around. The actual code is as follows: SELECT SHIPNO, PONO, Vendor, REFNO, REFDATE, ; Complete, sum(QTYTOT) as Received ; FROM Ship_Ln_Cursor ; INTO CURSOR Shipment_Lines_List ; GROUP BY SHIPNO, pono _______________________________________________ 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/DF1EEF11E586A64FB54A97F22A8BD0441DE5155AA2@ACKBWDDQH1.artfact.local ** 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.

