Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Group by clause in vfp8
Message
 
À
21/04/2003 13:03:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00774269
Message ID:
00779893
Vues:
32
>>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,

Pretty much the same with me. As I mentioned to JimB, I've a bunch of intentionally de-normalized tables (because of the report requirements) which require multiple groupings (up to 20+ in one case). From strictly a maintenance standpoint, breaking the rules here is almost a necessity.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform