SELECT X.CNTRY
, (BLA.AMC/12)*C.QXICXXX AS MMMC
, BLA.AMC*C.QXICXXX AS AMC
, (BLA.AMC/12)*C.QXICXXX AS TMC
FROM WCHTXIX X
, WCHTBLA BLA
, WCHTCLC C
When running the above SQL in QMF, the value return for MMMC, AMC, TMC are correct, as in above calculation, AMC is 12 times of MMMC and TMC
However when running the above SQL using batch, the value return for MMMC, AMC, TMC are not correct, AMC is 1.2 times of MMMC and TMC
Anyone got any idea? do I have to put DEC, FLOAT, DOUBLE, etc when dividing, e.g. DEC(BLA.AMC/12)?