Understanding Joins in MySQL

Published July 26, 2025 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