Most viewed questions in tag

0

Please login or register to vote for this query.

(click on this box to dismiss)

Drupal Answers Meta

Q&A about the site for Drupal developers and administrators

SELECT TOP 10000
Questions.Id 
AS [Post Link],
Questions.Title,
Questions.AnswerCount, 
Questions.ViewCount,
Questions.FavoriteCount, 
Questions.Score,
Questions.LastActivityDate

FROM Posts AS Answers 
    INNER JOIN Posts AS Questions 
    ON Questions.Id = Answers.ParentId
    
    INNER JOIN Users AS Users
    ON Answers.OwnerUserId = Users.Id
    
    INNER JOIN PostTags 
    ON PostTags.PostId = Answers.ParentId
    
    INNER JOIN Tags
    ON Tags.Id = PostTags.TagId

GROUP BY
Questions.Id, 
Questions.Title,
Questions.AnswerCount, 
Questions.ViewCount,
Questions.FavoriteCount, 
Questions.Score,
Questions.LastActivityDate

ORDER BY ViewCount DESC

Enter Parameters

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