SELECT DATEADD(month, DATEDIFF(month, 0, CreationDate), 0...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Skeptics

Q&A for scientific skepticism

SELECT 
    DATEADD(month, DATEDIFF(month, 0, CreationDate), 0) AS Month,
    eomonth(creationdate) [end of month],
    CreationDate  
  FROM
    Posts 
  WHERE
    PostTypeId = 1 -- Question
  
SELECT
    DATEADD(month, DATEDIFF(month, 0, CreationDate), 0) AS Month,
    CreationDate
  FROM
    Posts
  WHERE
    PostTypeId = 2 -- Answer

Enter Parameters

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