Find pairs of new users who are the 'accepted answer' of each other's questions more than once By ne

0

Please login or register to vote for this query.

(click on this box to dismiss)

Christianity

Q&A for committed Christians, experts in Christianity and those interested in learning more

SELECT q.Id, a.Id
FROM Posts p
INNER JOIN Users AS q ON p.OwnerUserId = q.Id
INNER JOIN Posts AS answers ON p.AcceptedAnswerId = answers.Id
INNER JOIN Users AS a ON answers.OwnerUserId = a.Id
WHERE q.CreationDate > DATEADD(month, -1, GETDATE()) 
AND a.CreationDate > DATEADD(month, -1, GETDATE())
AND p.OwnerUserId != answers.OwnerUserId AND p.OwnerUserId IS NOT NULL
AND answers.OwnerUserId IS NOT NULL
  
GROUP BY q.Id, a.Id HAVING COUNT(*) > 1

Enter Parameters

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