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)

Blender Meta

Q&A about the site for people who use Blender to create 3D graphics, animations, or games

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 
INNER JOIN (
  SELECT
    PostId,
    MAX(CreationDate) AS MaxCreationDate
  FROM
    Comments
  GROUP BY
    PostId
) AS mc ON c.PostId = mc.PostId AND c.CreationDate = mc.MaxCreationDate
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 BETWEEN DATEADD(DAY, -30, '2024-02-24') AND '2024-02-24'
  AND(

    c.Text LIKE '%update%' OR
    c.Text LIKE '%edit%' OR
    c.Text LIKE '%improve%' OR
    c.Text LIKE '%change%' OR
    c.Text LIKE '%replaced%' OR
    c.Text LIKE '%renamed%'
    )
ORDER BY
  c.CreationDate DESC

Enter Parameters

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