FAILURES with OP interaction

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

SELECT COUNT(DISTINCT p.Id)
FROM POSTS p
LEFT JOIN Comments c ON p.Id = c.PostId
WHERE p.PostTypeId = 1 
AND p.AcceptedAnswerId IS NULL
AND DATEDIFF(minute, p.CreationDate, c.CreationDate) < 15
AND c.UserId = p.OwnerUserId
HAVING COUNT(c.ID) > 0

Enter Parameters

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