Hot Meta Post vs Comment Count

1

Please login or register to vote for this query.

(click on this box to dismiss)

Christianity

Q&A for committed Christians, experts in Christianity and those interested in learning more

SELECT 
  DATEPART(wk, CreationDate) AS [Week], 
  COUNT(*) AS [Comment Count],
  CASE WHEN DATEPART(wk, CreationDate) > 30 THEN 0 ELSE 1000 END AS [Hot Meta Posts Enabled]
FROM Comments
WHERE CreationDate > '2019-04-01'
GROUP BY DATEPART(wk, CreationDate)
ORDER BY DATEPART(wk, CreationDate)

Enter Parameters

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