Q&A for practitioners, researchers, and students in cognitive science, psychology, neuroscience, and psychiatry
SELECT ROW_NUMBER() OVER (ORDER BY p.Score DESC) AS 'ID', p.Title, p.Id, p.Score, p.ViewCount, u.Displayname, p.Tags FROM Posts p JOIN Users u ON p.OwnerUserId = u.Id INNER JOIN PostTags pt ON p.Id=pt.PostId INNER JOIN Tags t ON t.id = pt.TagId WHERE t.TagName=##tagName:string?vba## AND YEAR(p.CreationDate) <= 2012 And p.PostTypeId = 1 --And p.Score <=10 --And p.Score >=0 --And p.AcceptedAnswerId is null ORDER BY p.Score DESC