04 Try it yourself Interactive
Four student rows, three department rows, one condition: s.did = d.did. Pick a join type and press Next. Each press takes one student row and tests it against all three department rows: it emits one result row per pairing that came out true, and for a join that protects the left table it emits a single NULL-extended row when none came out true. RIGHT and FULL then take one more press per department row that nothing matched. Kiran has no department and MECH has no students, and what each join type does with those two rows is the entire exercise. The mentor column plays no part in this join, so it is left out of the panes. Nothing plays on its own: Next, Back and Reset, or the arrow keys.