select count(*) - count(distinct neighbourhood)
from Neighbourhood;
我可以建议进一步细分:
select cnt, count(*), min(neighbourhood), max(neighbourhood)
from (select neighbourhood, count(*) as cnt
from neighbourhood
group by neighbourhood
) n
group by cnt
order by cnt;
2条答案
按热度按时间pinkon5k1#
所以你想:
我可以建议进一步细分:
这显示了复制的频率和示例值
neighbourhood
.dffbzjpn2#
使用
count(distinct neighbourhood)
以及distinct
不是函数