Rough estimation of consistent answerers on SO in 2022

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 (10) u.DisplayName, q.NumPosts, q.AvgScore
FROM Users AS u
CROSS APPLY 
(
  SELECT NumPosts = COUNT(*), 
         AvgScore = AVG(Score*1.0)
  FROM Posts AS p
  WHERE p.PostTypeId = 2
    AND p.CreationDate >= '20220101'
    AND p.DeletionDate IS NULL
    AND p.OwnerUserId = u.Id
    AND EXISTS
    (
      SELECT 1 FROM PostTags pt 
      WHERE pt.PostId = p.ParentId
      AND pt.TagId = 
      (
        SELECT Id 
          FROM Tags 
          WHERE TagName = N'sql-server'
      )
    )
    GROUP BY p.OwnerUserId
    HAVING COUNT(*) >= 12 -- at least one a month
) AS q
ORDER BY q.NumPosts * q.AvgScore DESC; -- scientific!

Enter Parameters

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