Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How Do You All Handle Group By Command
Message
From
01/08/2006 17:20:24
 
 
To
01/08/2006 10:15:20
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01141909
Message ID:
01142223
Views:
16
>>Then, it needs to extend the language SQL with a declarative clause
>>GROUP WITH ORDER ... BY..
>>
>>example:
>>
>>* this have not sense because Item2 is out of set
>>SELECT Item,First(f1),Last(f2) FROM table GROUP BY Item ORDER BY Item2
>>
>>* this have sense because WITH ORDER declare the order grouping
>>SELECT Item,First(f1),Last(f2) FROM table GROUP WITH ORDER Item2 BY Item
>>
>
>Right... what we need is an aggregate function any(), which would mean "the first value you get, I don't care in which order". That one would be fast, and simpler than min() or max().

Sorry Dragan,

but I cannot see the usability of this random aggregate function.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform