Ranked by ratio of minimum Views to Score
Q&A about the site for amateur radio enthusiasts
-- Best Questions and Answers (Answers doesn't work yet) -- Ranked by ratio of minimum Views to Score select top 500 Posts.Id as [Post Link], CASE WHEN PostTypeId = 1 THEN 'Question' ELSE 'Answer' END As [Post Type], ViewCount, Score, ROUND(CAST(ViewCount as decimal(10,2))/Score, 3) as [Views per Score] FROM Tags JOIN PostTags ON PostTags.TagId = Tags.Id JOIN Posts ON Posts.Id = PostTags.PostId where Score > 2 and ViewCount > '##MinimumNumberOfViews##' and Tags.TagName = '##TagName##' order by [Views per Score] asc