Q&A about the site for people interested in conceptual questions about life and challenges in a world where "cognitive" functions can be mimicked in purely digital environment
DECLARE @tag0 nvarchar(25) = N'laravel'; SELECT TOP 25000 p.Title AS Title, p.Body AS Body FROM Tags t JOIN PostTags pt ON pt.TagId = t.Id JOIN Posts p ON p.Id = pt.PostId WHERE t.TagName = @tag0 ORDER BY p.ViewCount / (1 + DATEDIFF(week, p.CreationDate, GETDATE())) DESC