/*Show the top 50 ranked questions (post type) of users w...

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

/*Show the top 50 ranked questions (post type) 
of users with badges only, which were closed in September 2021.*/

-- SELECT count(u.Id),count(DISTINCT u.Id)
--  from Users u
-- INNER JOIN Badges b ON u.Id = b.UserId

select DISTINCT b.UserId, CASE
    WHEN b.UserId IS NOT NULL THEN 1
    ELSE 0 END AS 'has_badges'
  from Badges b;

Enter Parameters

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