调用代码: string sql = @"SELECT a.Id ,c.Title,a.Content,a.Status,b.ReportSum FROM dbo.Comment AS a INNER JOIN(SELECT CommentId, COUNT(Id) AS ReportSum FROM dbo.Reported WHERE Type= 0 AND Status = 1 GROUP BY CommentId) AS b ON a.Id = b.CommentId LEFT JOIN…