我在此问:
WITH Ase AS
(
SELECT CAST(AVG(percent_water AS w) AS DECIMAL(10,2))
FROM dbo.countries
)
SELECT un_continential_region, un_subregion, Ase
FROM dbo.countries
WHERE percent_water > 0
GROUP BY un_continential_region, un_subregion
ORDER BY Ase DESC;
我正在发现的错误是
AVG不是公认的固定功能名称
问题在于,我要把水平均百分比作为ci,然后按不连续的-区域以及非次区域分类。
在什么地方我错了?