SELECT u.Id AS UserId, COUNT(p.Id) AS NumberOfAnswers FRO...

0

Please login or register to vote for this query.

(click on this box to dismiss)

SharePoint Meta

Q&A about the site for SharePoint enthusiasts

SELECT
    u.Id AS UserId,
    COUNT(p.Id) AS NumberOfAnswers
FROM
    Users u
JOIN
    Posts p ON u.Id = p.OwnerUserId
WHERE
    p.PostTypeId = 2  -- PostTypeId = 2 indicates that the post is an answer
GROUP BY
    u.Id
HAVING
    COUNT(p.Id) > 1000
ORDER BY
    NumberOfAnswers DESC;

Enter Parameters

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