I have the following SELECT
SELECT t.nome, count(t.id)
FROM Partidas p
LEFT JOIN Times t ON p.codTimeCasa = t.id
OR p.codTimeVisitante = t.id
GROUP BY t.nome
I would like it to return the teams that have no connection with the partidas
table, however it only returns the ones it has, would anyone know how to solve this problem?