Hi, I have a database for tracking costs of construction project. I have 3 tables that hold the contract estimate information. I used to hold the measured works and prelims on the same table but split them out as they are different entities with different information.
tblContract
ContractID
Name
StartDate
Weeks
Desc
CustometID
tblPrelims
ContractPrelimID
ContractID
Item Number
Description
Units
UnitCost
tblMeasuredWorks
ContractMeasuredWorkID
ContractID
Item Number
Description
Area
UnitCost
Bracket%
Panel%
Finishing
The Contract table is related to the other tables by ContractID.
What I want to do is build a query that will take the following from each table so I can create a Contract Valuation report with all information:
Item Number
Description
Area/Units
UnitCost
TotalCost (units * ItemCost)
I am really struggling with the joins.
Should I be creating a temp table, running one query with an subsequest appent query?
What is the best method to achieve this. Untimatly I want the report to show totals for measured works and prelims and then a grand total.
Any help would be greate.
Cheers
tblContract
ContractID
Name
StartDate
Weeks
Desc
CustometID
tblPrelims
ContractPrelimID
ContractID
Item Number
Description
Units
UnitCost
tblMeasuredWorks
ContractMeasuredWorkID
ContractID
Item Number
Description
Area
UnitCost
Bracket%
Panel%
Finishing
The Contract table is related to the other tables by ContractID.
What I want to do is build a query that will take the following from each table so I can create a Contract Valuation report with all information:
Item Number
Description
Area/Units
UnitCost
TotalCost (units * ItemCost)
I am really struggling with the joins.
Should I be creating a temp table, running one query with an subsequest appent query?
What is the best method to achieve this. Untimatly I want the report to show totals for measured works and prelims and then a grand total.
Any help would be greate.
Cheers