Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Union, Group By and Sum question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00463430
Message ID:
00463464
Vues:
11
To add to Cindy's response, the reason you need to do this with 2 queries instead of one, is that a UNION is a combination of 2 queries in one statement, each of which can have its own GROUP BY clause. So, you can't take the results and get a single value for each combination of Custno, Column2 and Column3 unless you join the results of both queries first, and then group them in a second query.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform