select top 10 u.Id, p.Id, a.Id from Posts p, Posts a, Use...

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 top 10 u.Id, p.Id, a.Id
from Posts p, Posts a, Users u
where  u.Creationdate <= '2014-10-04' and u. CreationDate >= '2014-01-01'
and p.OwnerUserId = u.Id
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