我准备好做以下工作:
现在,这听起来是一个相当愚蠢的解决方案,但我对嵌套查询还不太了解。有什么帮助吗?
SELECT location,count(distinct customer) as visitors from customer_locations GROUP BY location ORDER BY visitors DESC LIMIT 10
按唯一访问者数获取前10个位置