SELECT Min(CONVERT(date,creationdate)) AS date...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Meta Stack Exchange

Q&A for meta-discussion of the Stack Exchange family of Q&A websites

SELECT Min(CONVERT(date,creationdate))            AS date, 
       Year(creationdate)           AS PostYear, 
       Datepart(week, creationdate) AS PostWeek, 
       Count(*)                     AS Created, 
       Count(deletiondate)          AS Deleted

FROM   postswithdeleted 
       Where creationdate >= '06/01/2014'
GROUP  BY Year(creationdate), 
          Datepart(week, creationdate) 
ORDER  BY postyear, 
          postweek

Enter Parameters

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