I set all the day reading Questions on stackoverflow of how to jouin 3 table in one SQL query , I try it many times but it did not work !!
my case are like this , I want to understand how it is work and how should I do it.
my SQL query is the following :
SELECT students.id,
students.name,
students.age,
students.subjects,
students.teacher from students
LEFT JOIN subjects ON students.subjects = subjects.subject_id
LEFT JOIN teachers ON students.teacher = teachers.teacher_id
What is the wrong in my case ?