I have 2 tables
One with these columns
DeptCode, TruckN, PMC, RepNormC, RepABNormC, SFDPC
First, I need to merge RepNormC and SFDPC leaving only RepNormC. They are both currency fields and I need to add them together.
The other table has columns
PO_NO, FLEET_NO, PM_AMOUNT, NORMAL_AMOUNT, ABNORMAL_AMOUNT
The tables are related like this.
Dept_Code = PO_NO
TruckN = FLEET_NO
PMC = PM_AMOUNT
RepNormC = NORMAL_AMOUNT
REPABNormC = ABNORMAL_AMOUNT
I need to bring the tables together into one table and add the currencies (fields 3, 4, & 5) together if TruckN = FLEET_NO.
To me, this is a highly complicated query and I can't imagine where to begin. I'm still working on understanding joins.... If anyone could give me a suggestion that'd be GREAT!..... Thanks everyone.
PB
One with these columns
DeptCode, TruckN, PMC, RepNormC, RepABNormC, SFDPC
First, I need to merge RepNormC and SFDPC leaving only RepNormC. They are both currency fields and I need to add them together.
The other table has columns
PO_NO, FLEET_NO, PM_AMOUNT, NORMAL_AMOUNT, ABNORMAL_AMOUNT
The tables are related like this.
Dept_Code = PO_NO
TruckN = FLEET_NO
PMC = PM_AMOUNT
RepNormC = NORMAL_AMOUNT
REPABNormC = ABNORMAL_AMOUNT
I need to bring the tables together into one table and add the currencies (fields 3, 4, & 5) together if TruckN = FLEET_NO.
To me, this is a highly complicated query and I can't imagine where to begin. I'm still working on understanding joins.... If anyone could give me a suggestion that'd be GREAT!..... Thanks everyone.
PB