I have a problem when I make this query in mysql
select count(carne) TOTAL_ESTUDIANTES, profesor.nombre PROFESOR, cursos.asignatura CURSO
from profesor, cursos, matricula;
I only have 4 students but when I do the consultation, everything is doubled
also in the teacher column should appear the other names of the teachers but only one comes out as in the course column
These are the data of each one
and this is the model