我有一个问题,当我运行以下查询时,我得到“PercentageDifference”为 99.253731343283500,我真正想要显示的是 99.25,但没有任何摆弄似乎使它降低或导致错误:
select PlannedMonthName
, CountOfPlannedVisits
, CountOfPlannedVisitsClosed
, CONVERT( DECIMAL(12,2), nullif(CountOfPlannedVisitsClosed, 0) )
/ CONVERT( DECIMAL(12,2), nullif(CountOfPlannedVisits, 0) )
* 100 AS PercentageDifference