select top 50000 p.Id, (count(*)-1) from Posts p joi...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Mathematics Meta

Q&A about the site for people studying math at any level and professionals in related fields

-- Enter Query Title
-- Enter Query Description



select top 50000
 p.Id,
 (count(*)-1)
  

from Posts p join Comments c on p.Id = c.PostId
group by p.Id

Enter Parameters

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