Copyright (C) 2000-2012 |
GNU Info (mysql.info)example-Maximum-column-groupMaximum 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 | +---------+-------+ automatically generated by info2www version 1.2.2.9 |