Q&A for students, teachers, and linguists wanting to discuss the finer points of the Japanese language
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