Loading lesson path
Concept visual
Start at both ends
❮ SQL Keywords
command is used to group the result set (used with aggregate functions: COUNT, MAX, MIN, SUM, AVG). The following SQL lists the number of customers in each country:
SELECT COUNT(CustomerID), Country
GROUP BY Country;The following SQL lists the number of customers in each country, sorted high to low:
SELECT COUNT(CustomerID), Country
ORDER BY COUNT(CustomerID) DESC;❮ SQL Keywords