Q&A about the site for expert genealogists and people interested in genealogy or family history
--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 Users u WHERE NOT EXISTS ( SELECT 1 FROM Posts p JOIN PostTypes t ON p.PostTypeId = t.Id WHERE p.OwnerUserId = u.Id AND t.Name = 'Question' AND YEAR(p.CreationDate) = 2015 );