SELECT TOP(50) * FROM Posts p INNER JOIN Users u ON p.Own...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Mathematics Meta

Q&A about the site for people studying math at any level and professionals in related fields

SELECT
TOP(50) *
FROM
	Posts p
	INNER JOIN Users u ON p.OwnerUserId = u.Id
	INNER JOIN (select DISTINCT UserId, CASE
    WHEN UserId IS NOT NULL THEN 1
    ELSE 0 END AS 'has_badges'
  from Badges) b ON u.Id = b.UserId
WHERE
	YEAR(ClosedDate) = 2021
	AND MONTH(ClosedDate) = 09
    AND PostTypeId = 1
ORDER BY SCORE DESC

Enter Parameters

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