Shows which tags bring in the most viewers
Q&A about the site for speakers of German wanting to discuss the finer points of the language and translation
declare @TagString nvarchar(25) = ##tagName:string## select sum(p.ViewCount) as [Total Views] from Posts p inner join PostTags pt on p.Id = pt.PostId inner join Tags t on pt.TagId = t.Id where t.TagName = @TagString