SQL - Table Relationships
This SQL query is intended to find all courses taken by student with ID 3:
But it returns no rows even though student 3 exists and has courses. What is the likely error?
SELECT c.Name FROM Course c JOIN StudentCourse sc ON c.ID = sc.CourseID WHERE sc.StudentID = 3;
But it returns no rows even though student 3 exists and has courses. What is the likely error?
