Q&A for professionals and students of engineering
-- List of active users / active editors / active posters in the last -- 30 days, only counting questions and answers with non-negative score, -- not closed and not deleted. Number arbitrarily chosen to summarily -- resemble https://stats.wikimedia.org/EN/TablesWikimediaAllProjects.htm SELECT OwnerUserId, COUNT(*) AS ActivePosters5 FROM Posts p WHERE p.Score >= 0 AND p.ClosedDate IS NULL AND p.DeletionDate IS NULL AND DATEDIFF(day, p.CreationDate, GETDATE()) <= 30 GROUP BY p.OwnerUserId HAVING COUNT(p.Id) >= 5;