从customers表(包含customer_id、customer_name、city)中查询出每个城市(city)...
从customers表(包含customer_id、customer_name、city)中查询出每个城市(city)的客户数量,并按照客户数量降序排列。**** Hidden Message *****
SELECT city, COUNT(*) AS customer_count
FROM customers
GROUP BY city
ORDER BY customer_count DESC; order by SELECT city, COUNT(*) AS customer_count
FROM customers
GROUP BY city
ORDER BY customer_count DESC; SELECT city, COUNT(*) AS customer_count
FROM customers
GROUP BY city
ORDER BY customer_count DESC; SELECT city, COUNT(*) AS customer_count
FROM customers
GROUP BY city
ORDER BY customer_count DESC; SELECT city, COUNT(*) AS customer_count
FROM customers
GROUP BY city
ORDER BY customer_count DESC;
页:
[1]