Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Distinct clause
Message
From
21/02/2000 16:06:25
Michael Dougherty
Progressive Business Publications
Malvern, Pennsylvania, United States
 
 
To
21/02/2000 15:48:21
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00334970
Message ID:
00335043
Views:
18
>>If a rep works on 4 projects, they're still only 1 rep.
>Right, Either will give you that.

I tried the cnt(Distinct repid) as repcnt, but it still returned 14 rather than 9.

Each manager has 2 teams. A rep can spend time on either team. The task is to find the average time per rep for each manager's team AND manager overall. the average is simple: Sum(time4team) / RepCnt4Team = team avg time/rep
The same for manager overall: sum(alltime) / repcnt

The problem is when a rep is on both teams, they can't get counted twice.

I'll eventually figure it out, but it gets uglier the closer I get...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform