Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL ROLLUP in VFP?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00779122
Message ID:
00779169
Views:
13
>>Interesting group of threads Sergey. I looked at several and found that I would have recommended an ORDER BY before the GROUP BY in order to specify which records are shown in the results. I've never had any problem as long as I used ORDER BY - have I been missing something?
>
>Yes, you were lucky. The fields that aren't included in GROUP BY clause are returned from the last physical record in the group. The ORDER BY clause doesn't have any effect on this because sorting's performed on the resulting recordset after it has been processed by HAVING clause and before it's written to the destination cursor/table/array/e.t.c.
>
This didn't jive with my memory - but you are quite right. Thanks for setting me straight.
Kogo Michael Hogan

"Pinky, are you pondering what I'm pondering?"
I think so Brain, but "Snowball for Windows"?

Ideate Web Site
Previous
Reply
Map
View

Click here to load this message in the networking platform