Hit and Run -- Version 2

2

Please login or register to vote for this query.

(click on this box to dismiss)

They came, they asked, they never came back, not even for a quick word.

Ask Ubuntu

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], 
  P.CreationDate, 
  P.Score, 
  P.ViewCount,
  P.CommentCount
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

Enter Parameters

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