Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Distinct clients in zones
Message
From
23/11/1998 11:53:56
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Distinct clients in zones
Miscellaneous
Thread ID:
00160528
Message ID:
00160528
Views:
45
I'm having trouble figuring how to put this problem into SQL. Any help would be appreciated.

I've got a table with clientkey, pzone, dzone. I want to end up with a table that has zone, pnumclients, dnumclients.

"zone" is a combination of all zones in pzone and dzone. "pnumclients" is the number of clients that are listed with that pzone and likewise for dnumclients.

So if I had:

ck pz dz
1 22 23
1 22 23
1 23 22
2 22 23

I'd get:

z pc dc
22 2 1
23 1 2


Any ideas?

Thanks,

-Michelle
Next
Reply
Map
View

Click here to load this message in the networking platform