我在 SQL 中划分两个值,例如
SELECT SUM(totalCalls),
SUM(EnteredBTN),
SUM(EnteredBTN) * 100 / SUM(totalCalls),
SUM(EnteredACC),
SUM(EnteredACC) / SUM(totalCalls),
SUM(SentToTrans),
SUM(SentToTrans) * 100 / SUM(totalCalls),
SUM(Complete_Information),
SUM(Complete_Information) * 100 / SUM(SentToTrans)
现在当我做SUM(EnteredACC)/SUM(totalCalls)
ie 7/48时,它应该给我.14但它给了0。
当我这样做时SUM(EnteredACC)*100/SUM(totalCalls)
,它应该给出14.58(或四舍五入时为15 ),但结果是14。有人可以帮忙吗?