select count (a.Id) from Posts p, Posts a, Users u where ...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Ask Different

Q&A for power users of Apple hardware and software

select count (a.Id)
from Posts p, Posts a, Users u
where  u.Creationdate <= '2014-10-04' and u. CreationDate >= '2008-07-31'
and p.OwnerUserId = u.Id
and p.Id = a.ParentId
and p.AcceptedAnswerId = a.Id
and p.PostTypeId = 1 and a.PostTypeId = 2
and p.OwnerUserId = a.OwnerUserId
and datediff (month, u.CreationDate, p.CreationDate) >= 6

Enter Parameters

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