Q&A about the site for members of the workforce navigating the professional setting
DECLARE @now DATETIME = ( SELECT TOP 1 DATEADD(S, 1, CreationDate) FROM Posts ORDER BY Id DESC ); SELECT TOP ##TopN:int?100## Id AS [Post Link], CreationDate, 86400.0 * ViewCount / DATEDIFF(S, CreationDate, @now) AS ViewsPerDay FROM Posts WHERE PostTypeId = 1 ORDER BY ViewsPerDay, Id DESC