Basically when you add a WHERE clause using OUTER JOIN like you have done you turn them into INNER JOINS.Here is a one query that works, sorry I changed the table names while I was testing, but you get the idea:SELECT prod.ProductName, prod.ProductID, COUNT(t.hotfixID) ProductCount FROM PRODUCT prod LEFT OUTER JOIN( SELECT detail.productid, detail.hotfixID FROM DETAIL detail INNER JOIN Release release ON (detail.hotfixID = release.HotFixID) INNER JOIN STATUS status ON (release.ReleaseStatus = status.StatusID) WHERE release.PrimaryRelease = 1 AND status.StatusDesc <> 'Closed' ) tON (t.productid = prod.ProductID) GROUP BY prod.ProductName, prod.ProductID
-Lamprey