i haven't tested this but it should give u some ideas:select t2.blogDate, t2.blogHeader, t2.blogComment, t2.blogPostTime t2.Commentsfrom (SELECT TOP 5 W.blogDate, W.blogHeader, W.blogPostTime, COUNT(C.blogID) AS CommentsFROM dbo.Weblog AS W LEFT JOIN dbo.UserComments AS C ON W.blogID = C.blogIDGROUP BY W.blogDate, W.blogHeader, W.blogPostTimeORDER BY W.blogDate DESC) t1 inner join dbo.Weblog t2 on t1.blogDate = t2.blogDate and t1.blogHeader = t2.blogHeader and t1.blogPostTime = t2.blogPostTime
Go with the flow & have fun! Else fight the flow