I have 3 Tables, which are:
- School:
id
,id_escola
andnome_escola
; - Teacher:
id
,id_escola
andnome_professor
; - Students:
id
,id_escola
,sala_aula
andnumero_alunos
;
I am aware of joins
, count
's, and sum
' s but I am not able to mount SQL
.
I need to return a line from a specific school with the name of the school, number of students, number of rooms and number of teachers.
How to mount this query?