I alle versioner af MySQL skal du blot kalde aggregatet i SELECT-listen og sortere efter alias:
SELECT COUNT(id) AS theCount, `Tag` from `images-tags`
GROUP BY `Tag`
ORDER BY theCount DESC
LIMIT 20
I alle versioner af MySQL skal du blot kalde aggregatet i SELECT-listen og sortere efter alias:
SELECT COUNT(id) AS theCount, `Tag` from `images-tags`
GROUP BY `Tag`
ORDER BY theCount DESC
LIMIT 20