SQL Query - Get Sums from Two Different Levels of Hierarchy
- by Matthew Jones
A Project has multiple Tasks, which has multiple Assignments
Projects (1-n) - Tasks (1-n) - Assignments
A field on the Tasks table is Planned Hours.
A field on the Assignments table is Assigned Hours.
How do I get the Planned Hours and Assigned Hours for all Projects in a single query?