Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How Do You All Handle Group By Command
Message
De
01/08/2006 17:20:24
 
 
À
01/08/2006 10:15:20
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01141909
Message ID:
01142223
Vues:
25
>>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform