WITH c AS ( SELECT TagName, (SELECT COUNT(PostId) FROM P...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Chess Meta

Q&A about the site for serious players and enthusiasts of chess

-- Enter Query Title
-- Enter Query Description

WITH c AS
(
    SELECT
        TagName,
        (SELECT COUNT(PostId) FROM PostTags WHERE PostTags.TagId = Tags.Id) AS Count
        FROM Tags
        WHERE ISNUMERIC(TagName) = 1
)
SELECT
    TagName,
    SUM(Count)
    FROM c
    GROUP BY TagName WITH ROLLUP

Enter Parameters

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