SQL - LEFT and RIGHT JOIN
Given tables:
Students(id, name)
Enrollments(student_id, course_id)
Courses(id, title)
Write a query to list all courses and the count of students enrolled, showing 0 if none enrolled.
Students(id, name)
Enrollments(student_id, course_id)
Courses(id, title)
Write a query to list all courses and the count of students enrolled, showing 0 if none enrolled.
