Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Upgrading, GROUP BY question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01313609
Message ID:
01313702
Vues:
16
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 ...
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform