SELECT top 10 users.id, v1.numanswers, v1.numposts, v1.nu...

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 10 users.id, v1.numanswers, v1.numposts, v1.numanswers/v1.numposts as avgNumPosts from users, (SELECT top 10 votes.userid AS id, COUNT(posts.id) as numposts, sum(posts.answercount) AS numanswers 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