Q&A for scientists using computers to solve scientific problems
SELECT eomonth(p.creationdate), AVG(CAST(p.Score AS decimal)) FROM Posts p WHERE (p.PostTypeId IN (##types?1,2##)) ---1=questions ---2=answers ---1,2=questions and answers AND (p.CreationDate >= '##Date1?2010-01-01##') AND (p.CreationDate <= '##Date2?2021-01-01##') GROUP BY eomonth(p.creationdate) ORDER BY eomonth(p.creationdate)