Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL GROUP BY Question
Message
From
03/01/2006 18:37:51
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01082935
Message ID:
01082947
Views:
7
>When there is no ORDER BY clause, the GROUP BY clause seems to cause the records to be
>returned ordered by the group column.
>
>I don't see this in the docs. Is this the correct behaviour?

Yes because VFP implement GROUP BY with a ORDER BY loop.

Then:
with  GROUP BY <x><y> ORDER BY <x>
you can remove ORDER BY and to save some ms.

Despite someone says that this is not documented,
I don't believe someone succeeds in finding an against example.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform