qpd for different sites before and after

0

Please login or register to vote for this query.

(click on this box to dismiss)

with credits to glorfindel for a decent chunk of the code https://data.stackexchange.com/stackoverflow/revision/520226/657753/#graph an attempt to compare questions per day (and therefore general site activity) before and after the recent meta uproar

Writing

Q&A for the craft of professional writing, including fiction, non-fiction, technical, scholarly, and commercial writing

DECLARE @StartDate datetime = '2019-08-01';
DECLARE @EndDate datetime = '2019-09-01';
DECLARE @StartDate2 datetime = '2019-9-27';--date of monica's firing
DECLARE @EndDate2 datetime = '2019-10-27';

SELECT 
  dateadd(day, datediff(day, 0, creationdate), 0),
  count(*)
  FROM posts
  WHERE posttypeid = 1
    AND creationdate BETWEEN @StartDate AND @EndDate
  GROUP BY dateadd(day, datediff(day, 0, creationdate), 0)
  ORDER BY dateadd(day, datediff(day, 0, creationdate), 0)

SELECT
  dateadd(day, datediff(day, 0, creationdate), 0),
  count(*)
  FROM posts
  WHERE posttypeid = 1
    AND creationdate BETWEEN @StartDate2 AND @EndDate2
  GROUP BY dateadd(day, datediff(day, 0, creationdate), 0)
  ORDER BY dateadd(day, datediff(day, 0, creationdate), 0)

Enter Parameters

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