|
JohnBGood
Starting Member
48 Posts |
Posted - 2010-02-28 : 11:52:52
|
| Table 1 contains hierarchical info about the companyGroupID, ParentGroupID,GroupName,FullGroupName1,null,CEO,CEO2, 1, CIO, CEO.CIO3, 2, VP of Infrastructure, CEO.CIO.VP of Infrastructure4,2, VP of Applications,CEO.CIO.VP of Applications5, 3, Server Group Manager,CEO.CIO.VP of Infrastructure.Server Group Manager6, 3, Networking Group Manager, CEO.CIO.VP of Infrastructure.Networking Group Manager7, 6, Server Engineer,CEO.CIO.VP of Infrastructure.Server Group Manager.Server EngineerTable 2 maps Tasks to resourceTaskID, ResourceID, FullGroupName1,1,VP of Applications.Networking Group Manager.Server EngineerTable 3 has detailed daily work schedulesTaskID, TimeByDay,Work1,2/1/2010,81,2,2/2010,81,2/3/2010,8I want to sum the work by departmentGroupID, ParentGroupID, Sum(Work)-- for example1,null,242, 1, 243, 2, 244,2, 05, 3, 246, 3, 07, 6, 24Guidance appreciated! |
|