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 10:15:20
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
01/08/2006 03:53:19
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:
01142091
Views:
30
>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().

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform