Q&A for Joomla! administrators, users, developers and designers
/* select datepart(year,creationdate) Years,OwnerUserId, count(OwnerUserId) NoOfQuestionPost from Posts where OwnerUserId in (SELECT Id FROM users where datepart(year,creationdate) = 2008) and posttypeid = 1 and datepart(year,creationdate) < 2019 group by datepart(year,creationdate), OwnerUserId having count(*) >5 order by datepart(year,creationdate), OwnerUserId */ select datepart(year,creationdate) Years, count(*) PostedAnswersOf2014UsersYearly from Posts where OwnerUserId in (SELECT Id FROM users where datepart(year,creationdate) = 2014) and posttypeid = 2 and datepart(year,creationdate) between 2014 and 2018 group by datepart(year,creationdate) having count(*) >5