Most viewed questions in tag

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

DECLARE @Tag VARCHAR(25) = '##Tag##'

SELECT TOP 100
Questions.Id 
AS [Post Link],
Questions.Tags,
Questions.AnswerCount, 
Questions.ViewCount

FROM Posts AS Questions
    INNER JOIN PostTags 
    ON PostTags.PostId = Questions.Id
    INNER JOIN Tags
    ON Tags.Id = PostTags.TagId
    
WHERE Tags.TagName = @Tag

ORDER BY ViewCount DESC

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results