Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I total using sql statement
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00703851
Message ID:
00703852
Vues:
16
select sum(x), y from mytable group by y
>if I have the following cursor and I want a total of each amount belonging to an item how would I go about writing an sql statement for that.
>
>
>x        y
>2        bells
>5        tables
>3        bells
>4        glasses
>
>
>I need the result to show up as:
>
>
>x        y
>5        bells
>4        glasses
>5        tables
>
>
>Thanks
>Nick Patel
Hector Correa
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform