Exercise: Complete Picture
Get all students and courses.
Solution
sql
1-- PostgreSQL
2SELECT s.name, c.course_name
3FROM students s
4FULL OUTER JOIN courses c ON s.course_id = c.id;
Get all students and courses.
1-- PostgreSQL
2SELECT s.name, c.course_name
3FROM students s
4FULL OUTER JOIN courses c ON s.course_id = c.id;