Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Group by and count on union select
Message
From
08/05/2008 14:19:03
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Group by and count on union select
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01315922
Message ID:
01315922
Views:
55
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
Next
Reply
Map
View

Click here to load this message in the networking platform