They came, they asked, they never came back, not even for a quick word.
Q&A for Ubuntu users and developers
-- Hit and Run
-- They came, they asked, they never came back, not even for a quick word.
-- Modified the query to find questions that are hit and run and have no answers and are not closed.
SELECT U.ID as [User Link],
P.Id As [Post Link],
FROM Users As u
INNER JOIN Posts As p
ON u.Id = p.OwnerUserId
WHERE CONVERT(VARCHAR(10),u.LastAccessDate,111) = CONVERT(VARCHAR(10),p.CreationDate,111)
AND p.PostTypeId = 1
AND p.AnswerCount = 0
AND p.ClosedDate is Null
AND DATEDIFF(DD, p.CreationDate, GETDATE()) > 365
AND p.ViewCount < 1000
AND p.Score < 3
ORDER BY p.CreationDate