(mysql.info.gz) example-Maximum-column-group
Info Catalog
(mysql.info.gz) example-Maximum-row
(mysql.info.gz) Examples
(mysql.info.gz) example-Maximum-column-group-row
3.6.3 Maximum of Column per Group
---------------------------------
"What's the highest price per article?"
SELECT article, MAX(price) AS price
FROM shop
GROUP BY article
+---------+-------+
| article | price |
+---------+-------+
| 0001 | 3.99 |
| 0002 | 10.99 |
| 0003 | 1.69 |
| 0004 | 19.95 |
+---------+-------+
Info Catalog
(mysql.info.gz) example-Maximum-row
(mysql.info.gz) Examples
(mysql.info.gz) example-Maximum-column-group-row
automatically generated byinfo2html