Ассоциации

2

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow на русском

Вопросы и ответы для программистов

WITH QuestionsByMonth  
AS (SELECT DATEADD (month, DATEDIFF (month, 0, p.CreationDate), 0) AS [Month], 
p.Id AS id
FROM Comments C
INNER JOIN Posts p
ON p.Id = C.PostId
WHERE p.PostTypeId = 1 AND C.text LIKE N'%ассоциация:%')

SELECT
q.[Month], COUNT(q.id) AS Qs

FROM        QuestionsByMonth   q
GROUP BY    q.[Month]
ORDER BY    q.[Month]

Enter Parameters

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