Q&A for amateur radio enthusiasts
-- List of active users / active editors / active posters in the last -- 365 days, only counting questions and answers with non-negative score, -- not closed and not deleted. SELECT 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()) <= 367 GROUP BY p.OwnerUserId HAVING COUNT(p.Id) >= 1;