Q&A about the site for people studying math at any level and professionals in related fields
Declare @Tag VARCHAR(255); Set @Tag = '<android>'; Select Top(50000) @Tag As Tags, Body, ViewCount From Posts Where ViewCount > 1000 And CHARINDEX(@Tag, Posts.Tags) > 0 And (CHARINDEX('<code>', Body) > 0 Or CHARINDEX('<pre>', Body) > 0) Order By ViewCount Desc