SELECT top 100 users.id, v1.NumDistinctPosters as NumDist...

0

Please login or register to vote for this query.

(click on this box to dismiss)

The Workplace Meta

Q&A about the site for members of the workforce navigating the professional setting

-- Enter Query Title
-- Enter Query Description
SELECT top 100 users.id, v1.NumDistinctPosters as NumDistinctPosters FROM users, (SELECT votes.userid AS id, COUNT(DISTINCT posts.owneruserid) AS NumDistinctPosters FROM votes, posts WHERE votes.votetypeid = 5 AND votes.postid = posts.id GROUP BY votes.userid) as v1 WHERE users.id = v1.id ORDER BY users.id;

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results