答案 0 :(得分:0)
看起来你正试图计算整数的百分比。您需要将整数转换为支持Decimal的数据类型。试试这个:
select cast(pfe.TotalManagedSystem as Float) / cast(pfe.AllSystems as Float) as Percentage;
或者:
select cast(pfe.TotalManagedSystem as decimal) / cast(pfe.AllSystems as decimal) as Percentage;