Please login or register to vote for this query.

(click on this box to dismiss)

Drupal Answers

Q&A for Drupal developers and administrators

select (b.Post2014 - a.Pre2014)*100/a.Pre2014 as PostGrowthPrePost2014 from
(select count(1) as Pre2014 from Posts where CreationDate < '2015-01-01' and PostTypeId=1) as a,
(select count(1) as Post2014 from Posts where PostTypeId=1) as b

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results