Use a cláusula [`HAVING`][1] para retornar as editoras com mais de `n` títulos: SELECT COUNT(t.title_id) FROM titles t INNER JOIN publishers p ON t.pub_id = p.pub_id HAVING COUNT(t.pub_id) > 5 GROUP BY p.pub_id [1]: http://msdn.microsoft.com/pt-br/library/ms180199.aspx