VIEW
called student_notes
that selects all notes with their authorsCREATE VIEW IF NOT EXISTS student_notes AS
SELECT
students.first_name,
students.last_name,
notes.*
FROM students
JOIN notes ON notes.student_id = students.id
After creating the VIEW
then we can use it as regular table like this example:SELECT *
FROM student_notes