I'm pretty new to using MySQL and I'm still learning.
Say I have 3 Tables in a Database School.
The Tables are as follows;
Course Contains ID(PK) and Name
Student Contains ID(PK), Name, etc
Enrolment Contains rol_num(PK), student_id and course_id.
student_id references student(id)
course_id references course(id)
Basically Students details in the Students table, Courses details in the Courses Table, Enrolment table is a link table of students and their courses
Using a Select query command how can I get the following fields for all students courses.
student.id, student.name, course.name
Showing all Courses each student in on along with their name and id.