Try this :select f.ForumID, isnull(sum(post_count), 0) as 'Total Posts'from Forums f left join ( select ForumID, count(*) as post_count from Posts where PostDate >= dateadd(day, 0, datediff(day, 0, getdate())) and PostDate < dateadd(day, 0, datediff(day, -1, getdate())) group by ForumID ) as p on f.ForumID = p.ForumIDgroup by f.ForumID
And also follow the method instead i used of CONVERT(varchar(10),p.PostDate,101) = CONVERT(varchar(10),GETDATE(),101). Just do a search in this site for datetime, and you will find the answer to why it is prefered this way.----------------------------------'KH'