i have a question I need this select give me the nº of counts group by contenedor
SELECT C.Contenedor, count(DC.Contenedor) as NUM
FROM contenedores AS C, det_contenedores as DC
WHERE C.Contenedor=DC.Contenedor
GROUP BY C.Contenedor
But only appear the "C.Contenedor" that have "count(DC.Contenedor)" > 0
The result is (for example):
A->3
B->7
D->6
I would like to have:
A->3
B->7
C->0
D->6
E->0
any ideas? Thanks!!