Top programming languages

0

Please login or register to vote for this query.

(click on this box to dismiss)

Biology Meta

Q&A about the site for biology researchers, academics, and students

SELECT 
    CAST(DATEFROMPARTS(YEAR(p.CreationDate), MONTH(p.CreationDate), 1) AS DATE) AS [Month],
    t.TagName,
    COUNT(*) AS [Count]
FROM 
    Posts p
JOIN 
    PostTags pt ON pt.PostId = p.Id
JOIN 
    Tags t ON t.Id = pt.TagId
WHERE 
    t.Id IN 
    (
        SELECT TOP 10 Id 
        FROM Tags 
        ORDER BY Count DESC
    )
GROUP BY 
    t.TagName, 
    CAST(DATEFROMPARTS(YEAR(p.CreationDate), MONTH(p.CreationDate), 1) AS DATE)
ORDER BY 
    [Month] ASC, 
    t.TagName ASC;

Enter Parameters

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