We have a Database where events are Scheduled with Projected
data and Recorded with Actual Data. The Tables for
Scheduling are the same as the "Actual" Tables.
The Diagram Below is the Setup for our Tables with the
Project Table as the Link. All Tables have a one to many
relationship with the project.
Schedule1-----------v v-----------Actual1
Schedule2-------->Project<--------Actual2
Schedule3-----------^ ^-----------Actual3
I want to report What Items have been Scheduled and not
been Recorded in the Actual Tables. Basically a To-Do list.
The problem is, I am using a Left outer join but my results
get doubled if more than one item is scheduled for any of
the 6 tables. I grouped my information by Project Key and
am using the Count of the Schedule to compare with the
Count of the Actual. If Count(Schedule1.pkSchedule1) >
Count(Actual1.pkActual1) Then The task is not complete.
I can't seem to avoid the cartesian product though. Any advice would be appreciated.
data and Recorded with Actual Data. The Tables for
Scheduling are the same as the "Actual" Tables.
The Diagram Below is the Setup for our Tables with the
Project Table as the Link. All Tables have a one to many
relationship with the project.
Schedule1-----------v v-----------Actual1
Schedule2-------->Project<--------Actual2
Schedule3-----------^ ^-----------Actual3
I want to report What Items have been Scheduled and not
been Recorded in the Actual Tables. Basically a To-Do list.
The problem is, I am using a Left outer join but my results
get doubled if more than one item is scheduled for any of
the 6 tables. I grouped my information by Project Key and
am using the Count of the Schedule to compare with the
Count of the Actual. If Count(Schedule1.pkSchedule1) >
Count(Actual1.pkActual1) Then The task is not complete.
I can't seem to avoid the cartesian product though. Any advice would be appreciated.