Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Group by clause in vfp8
Message
From
21/04/2003 13:03:14
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00774269
Message ID:
00779887
Views:
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform