DECLARE @AID int = ##AnswerID## SELECT SUM(ViewCount), D...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Physics

Q&A for active researchers, academics and students of physics

DECLARE @AID int = ##AnswerID##

SELECT SUM(ViewCount), DATEDIFF(month, CreationDate, CURRENT_TIMESTAMP) AS age
FROM Posts p
WHERE p.id = @AID
GROUP BY DATEDIFF(month, CreationDate, CURRENT_TIMESTAMP)
ORDER BY age

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results