select datediff(month,q.CreationDate,a.CreationDate) , c...


Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow Meta en español

Preguntas y respuestas sobre el sitio para programadores y profesionales de la informática

-- Enter Query Title
-- Enter Query Description

select datediff(month,q.CreationDate,a.CreationDate)
, count(*)
, 100.0 * count(*) / (select count(*) from posts where posttypeid = 2 and CreationDate between '2011-01-01' and '2011-02-01')
from posts a
join posts q
on a.parentid =
where a.posttypeid = 2
and q.posttypeid = 1
and a.CreationDate between '2011-01-01' and '2011-02-01'
group by datediff(month,q.CreationDate,a.CreationDate)
order by datediff(month,q.CreationDate,a.CreationDate) desc

Enter Parameters

Switch to main site
loading Hold tight while we fetch your results