B
bhammer
Is this valid?
Three tables (call them A, B & C), each with a junction table between (call
them a, b & c). Six tables total, in a related in a circle? Is there
something I'm missing with the junction tables?
Specifically, tables ABC are Addresses, Issues, and InspectionTypes.
The first Junction table 'a' lists Observations (each record has one Issue
at one Address-- an Address can have many Observations of many Issues, and
many Observations of the same Issue at the same Address).
The second junction table 'b' lists IssueDetails (each record has one Issue
and the corresponding InspectionType during which that Issue might be
observed--each record has one Issue and one InspectionType, and an Issue can
correspond with many InspectionTypes).
The third junction table 'c' lists AddressDetails (each record has an
Address and the corresponding InspectionType (one or more) that were
performed at that Address).
Should these be combined in some way? If not, what query can I write that
will return the list of Observations including only those Observations where
the Issue was observed during a corresponding InspectionType at an Address
where that InspectionType occurred? And NOT including those Observations of
Issues made at an Addrress where that Issue's corresponding InspectionType
was NOT performed? (i.e. where an Issue was Observed during a 'partial'
Inspection).
?!?
Three tables (call them A, B & C), each with a junction table between (call
them a, b & c). Six tables total, in a related in a circle? Is there
something I'm missing with the junction tables?
Specifically, tables ABC are Addresses, Issues, and InspectionTypes.
The first Junction table 'a' lists Observations (each record has one Issue
at one Address-- an Address can have many Observations of many Issues, and
many Observations of the same Issue at the same Address).
The second junction table 'b' lists IssueDetails (each record has one Issue
and the corresponding InspectionType during which that Issue might be
observed--each record has one Issue and one InspectionType, and an Issue can
correspond with many InspectionTypes).
The third junction table 'c' lists AddressDetails (each record has an
Address and the corresponding InspectionType (one or more) that were
performed at that Address).
Should these be combined in some way? If not, what query can I write that
will return the list of Observations including only those Observations where
the Issue was observed during a corresponding InspectionType at an Address
where that InspectionType occurred? And NOT including those Observations of
Issues made at an Addrress where that Issue's corresponding InspectionType
was NOT performed? (i.e. where an Issue was Observed during a 'partial'
Inspection).
?!?