标签: mysql
我的表格'Customers'包含(customerID, firstname, lastname, town, state)
'Customers'
(customerID, firstname, lastname, town, state)
我正在尝试创建一个MySQL查询,以查找每个州有多少客户。有什么帮助吗?
答案 0 :(得分:2)
使用此:
SELECT COUNT(*),state FROM CUSTOMERS GROUP BY STATE