Q&A for people studying math at any level and professionals in related fields
-- Calculate the total number of tags SELECT COUNT(DISTINCT PostTags.TagId) FROM PostTags INNER JOIN Posts ON PostTags.PostId = Posts.Id WHERE Posts.PostTypeId = 1; -- Only consider tags on questions