Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

SQL COUNT() with GROUP BY

SELECT country, COUNT(*) AS customers
FROM Customers
GROUP BY country;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #SQL #GROUP #BY
ADD COMMENT
Topic
Name
9+4 =