Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Group by and count on union select
Message
De
08/05/2008 14:19:03
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Group by and count on union select
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01315922
Message ID:
01315922
Vues:
56
I have a union select like this:
SELECT Personal.NoMember FROM Personal;
 UNION;
SELECT Personal.NoMember2 AS NoMember FROM Personal;
 UNION;
SELECT Personal.NoMember3 AS NoMember FROM Personal;
Now, I need to enhance that select so I can have a group by NoMember with the COUNT(*). And, I also need to INNER JOIN that to the Member table so I will be able to get the first name and last name.

I am not sure about the proper syntax for that. I guess I will need to have some sub select.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform