Inner Join
Meera only reaches for Inner Join when student + marks has to stay correct in a report.
Inner Join on the board — JOIN … ON s.roll = m.roll. Then say what student + marks looks like after.
Inner Join exists so Meera can keep student + marks correct in a report.
Use Inner Join when student + marks must stay clear. If a simpler SQL step works, use that instead.
If student + marks breaks under Inner Join, check missing ON → cartesian product first.
Inner Join is not a lonely heading. Meera ties it to student + marks.
Viva for Inner Join — what it is → JOIN … ON s.roll = m.roll → the mistake (missing ON → cartesian product).
students.id
=
marks.student_id
│
▼
one result rowSay Inner Join in one breath, then JOIN … ON s.roll = m.roll, then missing ON → cartesian product.