I have 2 tables:
-Tabla departamentos con 1 campo(Nombre_Depart) y 3 inserts:
Comercio,Informatica,Centro.
Tabla Usuarios con 2 campos(Nombre,departamento) y 3 inserts:
Edu en informatica.
Jaime en informatica.
Conserje en centro.
I want to show the TOTAL number of people belonging to the departments and their name on a table.
SELECT count(Nombre_Depart),Departamento
from usuarios,departamentos
where departamentos.Nombre_Depart=usuarios.Departamento
GROUP BY Nombre_Depart
The problem is that the commerce department does not show it because in the users table nobody is in that department. What do I have to do to make a 0 - Trade appear?