Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Upgrading, GROUP BY question
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01313609
Message ID:
01313702
Views:
15
David,

You don't have to include all the fields in the GROUP BY, the rule states that they have to be part of the GROUP BY or they have to be aggregates. Whne you don;t care which records value show for the field you can simply make the field in the filed list be MAX(MyField) or MIN(MyField) and that will satisfy the rule.

You can also SET ENGINE BEHAVIOR 70 for that SELECT statement;
* Code doing all kinds of stuff and then ...
SET ENGINEBEHAVIOR 70
SELECT ... GROUP BY ...
SET ENGINEBEHAVIOR 90
* Continue with the rest of the code ...
Previous
Reply
Map
View

Click here to load this message in the networking platform