dukeslater
Technical User
I have a table variable populated with teams, weeks, and start/end dates:
Team Location Week Start End Calls
113 New York 1 1/1 1/7
113 New York 2 1/8 1/14
113 New York 3 1/15 1/21
114 Boston 1 1/3 1/9
114 Boston 2 1/10 1/16
and so on.
I need to update the calls field with the sum of all calls during the range of start/end dates. These values are stored by individual date and employee:
Employee Date Calls
1000 1/1 123
1000 1/2 99
1001 1/3 141
1003 1/10 87
I need to use a third table to define the employees that are on each team
Location Team Emp
New York 113 1000
New York 113 1001
Boston 114 1002
Pretty straight forward, it seems, but I'm not figuring out a method for updating the call totals based on the date ranges - at least not one that isn't brutally slow. I'm a semi-newbie, but can anyone tell me the best way to handle this?
Thanks,
Duke
Team Location Week Start End Calls
113 New York 1 1/1 1/7
113 New York 2 1/8 1/14
113 New York 3 1/15 1/21
114 Boston 1 1/3 1/9
114 Boston 2 1/10 1/16
and so on.
I need to update the calls field with the sum of all calls during the range of start/end dates. These values are stored by individual date and employee:
Employee Date Calls
1000 1/1 123
1000 1/2 99
1001 1/3 141
1003 1/10 87
I need to use a third table to define the employees that are on each team
Location Team Emp
New York 113 1000
New York 113 1001
Boston 114 1002
Pretty straight forward, it seems, but I'm not figuring out a method for updating the call totals based on the date ranges - at least not one that isn't brutally slow. I'm a semi-newbie, but can anyone tell me the best way to handle this?
Thanks,
Duke