select top 50 * from Posts p where PostTypeId = 1 and ca...

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  top 50 *
from Posts p
where PostTypeId = 1
and cast(ClosedDate as date) >= '2021-09-01'
and cast(ClosedDate as date)< '2021-10-01'
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