SELECT
reporting.station
FROM
reporting
LEFT JOIN
channel
ON
MD5(igmpurl)=reporting.station
WHERE
reporting.station!=”n/a”
ORDER BY
name;
resulting in this table:

Now I’d like to count the number of each element, which should something look like:

Note: I know about COUNT(station) which would return the number of the rows (20) but is not what I want.
Any idea how to solve this in MySQL (InnoDB)?
Many thanks and regards
Try this.