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 GROUP BY p.pub_id HAVING COUNT(t.pub_id) > 5 [1]: http://msdn.microsoft.com/pt-br/library/ms180199.aspx