Exercise: View with Join
Create view combining tables.
Solution
sql
1CREATE VIEW student_courses AS
2SELECT s.name, c.course_name
3FROM students s
4JOIN courses c ON s.course_id = c.id;
Create view combining tables.
1CREATE VIEW student_courses AS
2SELECT s.name, c.course_name
3FROM students s
4JOIN courses c ON s.course_id = c.id;