7. SQL Joins – INNER JOIN, LEFT JOIN, RIGHT JOIN, FULL JOIN Explained with Examples

Опубликовано: 04 Июнь 2026
на канале: GNT Creator
125
5

Learn how to combine data from multiple tables using SQL Joins! In this beginner-friendly tutorial, we cover:

✅ INNER JOIN – Retrieve matching records from both tables
✅ LEFT JOIN – Get all records from the left table and matching ones from the right
✅ RIGHT JOIN – Get all records from the right table and matching ones from the left
✅ FULL JOIN – Combine all records from both tables, with or without matches

This tutorial includes clear explanations, real-world examples, and hands-on SQL queries to help you understand how joins work in databases.

🔹 Watch till the end for practical demos!
📌 Like, comment, and subscribe for more SQL tutorials!

#SQL #SQLJoins #Database #SoftwareTesting #SQLforBeginners #DataAnalysis #gntcreator

=====================================================
🔹SQL queries from the video:


CREATE TABLE projects (
project_id INT PRIMARY KEY,
project_name VARCHAR(100),
employee_id INT
);

INSERT INTO projects (project_id, project_name, employee_id) VALUES
(1, 'Website Redesign', 101),
(2, 'Financial Audit', 103),
(3, 'Security Upgrade', 104),
(4, 'Marketing Campaign', 105),
(5, 'HR System Migration', 106),
(6, 'Investment Analysis', 107),
(7, 'Cloud Migration', 108),
(8, 'SEO Optimization', 109),
(9, 'Cybersecurity Enhancement', 110),
(10, 'Employee Benefits Update', NULL);


SELECT e.name, p.project_name
FROM employees e
LEFT JOIN projects p ON e.id = p.employee_id

UNION

SELECT e.name, p.project_name
FROM employees e
RIGHT JOIN projects p ON e.id = p.employee_id;
=====================================================