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


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, 

Enter Parameters

Switch sites
loading Hold tight while we fetch your results