Potential collisions between tag badges and regular badges

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

-- cf. https://meta.stackexchange.com/q/341717/295232
-- Tag badges aren't awarded if there is already a regular badge with the same name

SELECT t.TagName, t.Count
  FROM Badges AS b
  INNER JOIN Tags AS t
    ON LOWER(b.Name) = REPLACE(t.TagName, '-', ' ')
  WHERE b.TagBased = 0
  GROUP BY t.TagName, t.Count
  ORDER BY t.Count DESC

Enter Parameters

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