Ratio of users who have at least one question upvote

0

Please login or register to vote for this query.

(click on this box to dismiss)

Ukrainian Language Meta

Q&A about the site for linguists, teachers and students of the Ukrainian language

declare @population int = (select count(*) from Users)

select count(distinct OwnerUserId) "Users gaining reputation",
       @population "Total users",
       100.0*count(distinct OwnerUserId)/@population "% who gain"
from Posts q
     join Votes v on q.Id = v.PostId
where PostTypeId = 1
      and VoteTypeId = 2

Enter Parameters

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