SQL - Table Relationships
You wrote this query to find all students and their courses:
But it has a problem. What is the problem?
SELECT Student.Name, Course.Title FROM Student
JOIN StudentCourse ON Student.ID = StudentCourse.StudentID
JOIN Course ON Course.ID = StudentCourse.CourseID
WHERE StudentCourse.StudentID = Student.ID;
But it has a problem. What is the problem?
