Users with most comments between two dates

1

Please login or register to vote for this query.

(click on this box to dismiss)

Writing

Q&A for the craft of professional writing, including fiction, non-fiction, technical, scholarly, and commercial writing

SELECT TOP(##num?100##)
  RANK() OVER(ORDER BY COUNT(c.Id) DESC) AS Rank,
  c.UserId AS [User Link],
  COUNT(c.Id) AS [Number of Comments]
FROM Comments c 
WHERE (c.CreationDate >= '##Date1?2022-01-01##') AND (c.CreationDate <= '##Date2?2023-01-01##')
GROUP BY c.UserId
ORDER BY COUNT(c.Id) DESC

Enter Parameters

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