Q&A for Joomla! administrators, users, developers and designers
select count(closeddate), avg(datediff(minute, creationdate, closeddate )*1.0) as life_time from Posts where score < 0 and closeddate is not Null group by year(creationdate)