SELECT TOP 100 Tags.TagName, COUNT(*) AS QuestionCount, S...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Korean Language

Q&A for linguists, teachers and students of the Korean language

SELECT TOP 100
    Tags.TagName, 
    COUNT(*) AS QuestionCount,
    SUM(Questions.ViewCount) AS TotalViewCount
FROM Tags
JOIN PostTags ON Tags.Id = PostTags.TagId
JOIN Posts AS Questions ON PostTags.PostId = Questions.Id
WHERE Questions.PostTypeId = 1 -- Questions only
    AND Questions.CreationDate >= DATEADD(year, -1, GETDATE()) -- Within the last year
GROUP BY Tags.TagName
ORDER BY QuestionCount DESC;

Enter Parameters

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