SELECT a.Id AS [Answer ID], a.CreationDate AS [Answer Cre...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Motor Vehicle Maintenance and Repair Meta

Q&A about the site for mechanics and DIY enthusiast owners of cars, trucks, and motorcycles

SELECT
  a.Id AS [Answer ID],
  a.CreationDate AS [Answer Creation Date],
  a.Body AS [Answer Body],
  c.Id AS [Comment ID],
  c.Text AS [Comment Text],
  c.CreationDate AS [Comment Creation Date]
FROM
  Posts q
INNER JOIN
  Posts a ON q.Id = a.ParentId
INNER JOIN
  Comments c ON a.Id = c.PostId 
WHERE
  q.ViewCount > 0
--   AND q.Tags LIKE '%<java>%'
--   AND a.CreationDate > DATEADD(DAY, -30, GETDATE())
--   AND a.PostTypeId = 2
--   AND c.CreationDate > a.CreationDate
  AND q.Tags LIKE '%<java>%'
  AND a.PostTypeId = 2
  AND c.CreationDate > DATEADD(DAY, -7, GETDATE())
ORDER BY
  c.CreationDate DESC

Enter Parameters

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