SQL - LEFT and RIGHT JOIN
Given tables:
Students:
StudentID | Name
1 | Anna
2 | Ben
Enrollments:
EnrollmentID | StudentID | Course
1001 | 1 | Math
1002 | 3 | Science
How can you use RIGHT JOIN to find all enrollments with student names, including enrollments without matching students?
Students:
StudentID | Name
1 | Anna
2 | Ben
Enrollments:
EnrollmentID | StudentID | Course
1001 | 1 | Math
1002 | 3 | Science
How can you use RIGHT JOIN to find all enrollments with student names, including enrollments without matching students?
