Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Group by clause in vfp8
Message
De
21/04/2003 13:03:14
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00774269
Message ID:
00779887
Vues:
31
>Thanks for the input. I've never relied, however, on this particular behavior since, AFAIK, it's not documented and I don't know if this behavior is the same on SQL Server 6.5 and/or Sybase, both of which don't include the restriction on non-aggregate fields being in the group by clause.

I've never relied on it either. I'd like to say that I've always written all my queries to conform to the "GROUP BY or aggregate" rule, but occasionally, I haven't. However, the only situations where I've knowingly broken the rules are in queries with parent-child relationships, where I was grouping on the parent PK and the field that wasn't in the GROUP BY or aggregates was from the parent record. Something like grabbing company name when grouping by company id.

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform