Hola Joseph,
La consulta podría ser algo así:
Código SQL:
Ver originalSELECT M.id AS idM,
M.materia AS materiaM,
D.id AS idD,
D.docente AS docenteD,
A.id AS idA,
A.aula AS aulaA,
S.id AS idS,
S.seccion AS seccionS,
FROM Materia AS M, Docente AS D, Aula AS A, Seccion AS S
El resto del código, realmente no lo entiendo...