comment partition by question

0

Please login or register to vote for this query.

(click on this box to dismiss)

Cognitive Sciences Meta

Q&A about the site for practitioners, researchers, and students in cognitive science, psychology, neuroscience, and psychiatry

--select posts, referred in comments
		  WITH CS AS (
		  SELECT      PostId, count(Id) as CommentedPosts, max(Id) as SampleComment
			FROM        Comments
			WHERE       UserId = ##UserId## 
			GROUP BY        PostId
		)
        
        select * from CS

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results