Powinieneś być w stanie to uzyskać za pomocą GROUP BY klauzula:
SELECT tagName, count(tagName) AS tagCount FROM tagTable GROUP BY tagName
Powinieneś być w stanie to uzyskać za pomocą GROUP BY klauzula:
SELECT tagName, count(tagName) AS tagCount FROM tagTable GROUP BY tagName