With TopCommenters As ( Select Top 10 UserId, Count(Id) A...

0

Please login or register to vote for this query.

(click on this box to dismiss)

TeX - LaTeX

Q&A for users of TeX, LaTeX, ConTeXt, and related typesetting systems

With
  TopCommenters As (
    Select Top 10
      UserId,
      Count(Id) As NumComments
    From
      Comments
    Where
      Year(CreationDate) = 2011
    Group By
      UserId
    Order By
      Count(Id) Desc
  )
  
Select
  Comments.Id,
  PostId,
  Posts.PostTypeId,
  Comments.CreationDate,
  Comments.UserId
From
  Comments Inner Join TopCommenters
    On Comments.UserId = TopCommenters.UserId
    Inner Join Posts
    On Comments.PostId = Posts.Id
Where
  Year(Comments.CreationDate) = 2011
;

Enter Parameters

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