SQL Query - Get Sums from Two Different Levels of Hierarchy

Posted by Matthew Jones on Stack Overflow See other posts from Stack Overflow or by Matthew Jones
Published on 2010-04-06T21:39:02Z Indexed on 2010/04/06 21:43 UTC
Read the original article Hit count: 324

Filed under:
|
|

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?

© Stack Overflow or respective owner

Related posts about sql-server

Related posts about c#