select *,
(TotalDeaths/TotalCases)*100 as PercentDeath,
(TotalDeaths/population)*100 as DeathPercentPopulation
from ( select location,
population,
sum(newcases) as TotalCases,
sum(newdeaths) as TotalDeaths
from deaths
where continent is not null
group by location
) as newtable
order by DeathPercentPopulation desc
在"死亡百分比"和"死亡百分比人口"列中,小数点后有几个数字.但是我只想在小数点后显示两位数.我如何在不再次嵌套此查询的情况下做到这一点?