Q&A about the site for administrators, end users, developers and designers for Craft CMS
--2: How many users didn’t post any questions in year2015.(hint: use PostType table to check which post types is question) SELECT count (*) FROM Posts p JOIN PostTypes t ON p.PostTypeId = t.Id join Users u on p.OwnerUserId = u.Id where t.Name = 'Question' AND YEAR(p.CreationDate) = 2015