select, count(users.no_of_comments) as comments,...


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

select, count(users.no_of_comments) as comments,cast(c.creationdate as date)
(select top 50, p.commentcount as no_of_comments
from posts p
where year(p.CreationDate) = year(getdate())-1
group by,p.commentcount
order by no_of_comments desc) as users
inner join comments c on = c.postid
where cast(c.creationdate as date) = '2020-01-02 00:00:00'
group by,cast(c.creationdate as date)

Enter Parameters

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