Understanding Joins in MySQL

Published September 07, 2026 By Sai Sree Ram Gundepudi

INNER JOIN

SELECT e.name, d.name FROM employees e JOIN departments d ON e.dept_id = d.id;

LEFT JOIN

SELECT e.name, d.name FROM employees e LEFT JOIN departments d ON e.dept_id = d.id;

Was this solution helpful?

Your feedback helps improve our technical knowledge repository.

Share this article