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 10:15:20
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
01/08/2006 03:53:19
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:
01142091
Vues:
21
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform