Get comments on posts

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

select top 20
p.id,
p.id as [Post Link],
p.creationdate,
commentcount,
text
from comments c join posts p on p.id=c.postid
where posttypeid=1 and p.id=c.postid

Enter Parameters

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