select * from Posts p where PostTypeId = 1 and ClosedDa...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Meta Server Fault

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

Enter Parameters

Options:
Switch to main site
loading Hold tight while we fetch your results