how to join more then 2 column in mysql

Solutions on MaxInterview for how to join more then 2 column in mysql by the best coders in the world

showing results for - "how to join more then 2 column in mysql"
Lev
17 Jan 2019
1SELECT
2  s.last_name, s.first_name,
3  p.course_code, p.status, p.amount
4FROM enrollment e
5JOIN student s
6  ON s.id=e.student_id
7JOIN payment p
8  ON p.course_code=e.course_code
9    AND p.student_id=e.student_id;