select p.Id, COUNT(p.Id) from posts as p join (select Id ...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Software Engineering

Q&A for expert programmers interested in professional discussions on software development

select p.Id, COUNT(p.Id)
  from posts as p
  join
    (select Id from posts
    where CreationDate BETWEEN '2015-08-01' AND '2015-08-31'
    and AnswerCount = 2
    and PostTypeId = 2) --question
  as d on d.Id = p.ParentID
  where p.CreationDate BETWEEN '2015-08-01' AND '2015-08-31'
  GROUP BY p.Id;

Enter Parameters

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