SELECT COUNT(DISTINCT postTags.tagId) AS total, COUNT(tag...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Moderators

Q&A for community managers, administrators, and moderators

SELECT COUNT(DISTINCT postTags.tagId) AS total, COUNT(tags.tagName) AS count, tags.tagName
FROM postTags
LEFT JOIN tags ON postTags.tagId = tags.id
LEFT JOIN posts ON postTags.postId = posts.id
WHERE posts.ownerUserId = 276959
GROUP BY tags.tagName
ORDER BY count DESC

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results