L
Lorna_Jane
Hello,
I have several many to many relationships. Example:
CatchmentTable: CatchmentID, WasteID, Area
WasteSiteTable: WasteID, Location
WasteLookup: CatchmentID, WasteID
DrainageTable: DrainID, DrainValue
DrainageLookup: DrainID, CatchmentID
I would like to return a table with ALL records from the catchment table,
the sum of DrainValue for each unique CatchmentID, and the count of WasteIDs
for each CatchmentID.
I also have several tables relating one to one to CatchmentTable that I
would like to include in the query.
Any help is appreciated.
Thank-you
I have several many to many relationships. Example:
CatchmentTable: CatchmentID, WasteID, Area
WasteSiteTable: WasteID, Location
WasteLookup: CatchmentID, WasteID
DrainageTable: DrainID, DrainValue
DrainageLookup: DrainID, CatchmentID
I would like to return a table with ALL records from the catchment table,
the sum of DrainValue for each unique CatchmentID, and the count of WasteIDs
for each CatchmentID.
I also have several tables relating one to one to CatchmentTable that I
would like to include in the query.
Any help is appreciated.
Thank-you