3
I have 3 tables, being them:
- Schoolhouse:
id
,id_escola
andnome_escola
; - Professor:
id
,id_escola
andnome_professor
; - Students:
id
,id_escola
,sala_aula
andnumero_alunos
;
I am aware of the joins
, count
's, and sum
'but I’m not getting to ride the SQL
.
I need to return a line from a specific school with the name of the school, number of students, number of classrooms and number of teachers.
How to mount this query ?