Average post score by calendar month

0

Please login or register to vote for this query.

(click on this box to dismiss)

Drupal Answers

Q&A for Drupal developers and administrators

-- Average post score by calendar month 

  select Convert(varchar(6), creationdate, 112) 'calendar month', avg(score) 'average post score'
  from posts
  group by Convert(varchar(6), creationdate, 112)
  order by Convert(varchar(6), creationdate, 112)

Enter Parameters

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