select t2.yeardate,t2.monthdate, (100 - t2.postsamount*10...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Audio-Video Production Meta

Q&A about the site for engineers, producers, editors, and enthusiasts spanning the fields of video, and media creation

select t2.yeardate,t2.monthdate,
(100 - t2.postsamount*100.0/t.postsamount) as percentofreduction
from
(select 
  row_number() over(ORDER BY year(creationdate),month(creationdate)) AS id,
  year(creationdate) as yeardate,
  month(creationdate) as monthdate,
  count(*) as postsamount
  from posts group by year(creationdate),month(creationdate))t 
inner join
(select 
  row_number() over(ORDER BY year(creationdate),month(creationdate)) AS id,
  year(creationdate) as yeardate,
  month(creationdate) as monthdate,
  count(*) as postsamount
  from posts group by year(creationdate),month(creationdate))t2

on t2.id = t.id + 1
where t2.postsamount - t.postsamount < 0

Enter Parameters

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