Q&A about the site for system and network administrators
--Show the top 50 ranked questions (post type) of users with badges only, -- which were closed in September 2021. select * from Posts p where PostTypeId = 1 and ClosedDate>= '2021-09-01 00:00:00' and ClosedDate< '2021-10-01 00:00:00' and exists (select 1 from badges b where b.userid = p.OwnerUserId) order by Score desc