J
JOM
I have 4 tables,
tbl1 has fieldX, filedY and fieldZ
tbl2 has fieldA and fieldB
tbl3 has fieldC
tbl4 has fieldD
What I want to archieve is as follows
tbl1.fieldX + tbl2.fieldY - tbl3.fieldZ
+tbl2.sum(fieldA)+tbl3.sum(fieldc)=tbl4.fieldD
part2:
tbl3.fieldC=Avg(tbl4.fieldD)
Please help!
tbl1 has fieldX, filedY and fieldZ
tbl2 has fieldA and fieldB
tbl3 has fieldC
tbl4 has fieldD
What I want to archieve is as follows
tbl1.fieldX + tbl2.fieldY - tbl3.fieldZ
+tbl2.sum(fieldA)+tbl3.sum(fieldc)=tbl4.fieldD
part2:
tbl3.fieldC=Avg(tbl4.fieldD)
Please help!