Q&A for programmers
WITH Awarded AS ( SELECT question.Id as PostId, COUNT(v.BountyAmount) as Awarded FROM Votes v INNER JOIN Posts p ON v.PostId = p.Id INNER JOIN Posts question ON p.ParentID = question.Id WHERE v.VoteTypeId = 9 GROUP BY question.Id ) SELECT COUNT(v.BountyAmount) AS Offered, SUM(a.Awarded) AS Awarded FROM Votes v INNER JOIN Posts p ON v.PostId = p.Id LEFT JOIN Awarded a ON p.Id = a.PostId WHERE v.VoteTypeId = 8 AND p.CreationDate BETWEEN '2012-01-01' AND '2012-09-30'
Error: looks like you typed in the wrong words - try again