How many of closed bounties have been awarded?

0

Please login or register to vote for this query.

(click on this box to dismiss)

Bicycles

Q&A for people who build and repair bicycles, people who train cycling, or commute on bicycles

-- How many of closed bounties have been awarded?

with
  BountyCloses as
     (select count(*) as Amount from Votes where VoteTypeId=9),
  BountyAwards as
     (select count(*) as Amount from Votes inner join Posts on (Votes.PostID=Posts.Id) where VoteTypeId=9 and Posts.ParentId is not null)
select
  BountyCloses.Amount as ClosedBounties,
  BountyAwards.Amount as AwardedBounties,
  BountyAwards.Amount*100/BountyCloses.Amount Percentage
from BountyCloses,BountyAwards

Enter Parameters

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