如何显示州和给定州的城市数。由州值按DESCENDING顺序排列
Try the following. You should read and learn basics about SQL here.
select state, count(distinct city) as total_city from yourTable group by state order by total_city desc
您可以尝试此查询。
SELECT state,count(city) from <tablename> group by state order by state desc.
Try the following. You should read and learn basics about SQL here.
您可以尝试此查询。