以下是我的最后做出来的结果:向各位师兄汇报一下
SELECT Dpost_2.postID, (SELECT TOP (1) 修改时间 FROM Drepost WHERE (postID = Dpost_2.postID) ORDER BY 修改时间 DESC) AS retime, (SELECT TOP (1) UserName FROM Drepost AS Drepost_1 WHERE (postID = Dpost_2.postID) ORDER BY 修改时间 DESC) AS rename, Dpost_1.创建时间, Dpost_1.题目, Dpost_1.UserName, Dpost_1.readnum, Dpost_1.postID AS Expr1, (SELECT COUNT(postID) AS Expr1 FROM Drepost AS Drepost_2 GROUP BY postID HAVING (postID = Dpost_2.postID)) AS postnum FROM Dpost AS Dpost_2 INNER JOIN Dpost AS Dpost_1 ON Dpost_2.postID = Dpost_1.postID WHERE (Dpost_2.版块ID = @版块ID) ORDER BY Dpost_1.创建时间 DESC