Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

MySQL GROUP BY

SELECT Manufacturer, COUNT(*) AS ModelsCount
FROM Products
WHERE Price > 30000
GROUP BY Manufacturer
ORDER BY ModelsCount DESC
Source by metanit.com #
 
PREVIOUS NEXT
Tagged: #MySQL #GROUP #BY
ADD COMMENT
Topic
Name
3+7 =