en mysql I have two tables, "students" and "tutors", where a tutor has several students, and each tutor has an area assigned (mathematics, Spanish, English, etc.)
What I need is a sentence to count the number of students who have tutoring with each area, for example (according to the example data of the image):
math: 8 (since the students in tutor 1 and tutor 4 are counted in math) Spanish: 4 (since only tutor 2 students study Spanish)
and so for each subject, I tried but I have not worked an inner join with count and / or sum, I thank you very much because it is very important to me, thank you very much