de_notes

๐Ÿ“š FULL OUTER JOIN

The FULL OUTER JOIN is used in SQL to return all records when there is a match in either the left or right table.
If there is no match, NULL values are returned for the missing side.


๐Ÿ› ๏ธ Basic Syntax

SELECT columns
FROM table1
FULL OUTER JOIN table2
ON table1.column_name = table2.column_name;

Example

SELECT employees.first_name, departments.department_name
FROM employees
FULL OUTER JOIN departments
ON employees.department_id = departments.department_id;

Key Points

Additional Example

SELECT customers.customer_name, orders.order_id
FROM customers
FULL OUTER JOIN orders
ON customers.customer_id = orders.customer_id;

๐ŸŽฅ Video Notes


๐Ÿ“ Problem Description

Describe the problem, challenge, or topic discussed in a video related to SELECT FROM.
What concept was explained or what exercise was solved?


DataBase Given


๐Ÿ’ป My SQL Code

-- Write your SQL code attempt or solution related to SQL COMMAND
SQL COMMAND

๐Ÿง  Solution Code / Explanation

SQL COMMAND

Explanation - Explain what you learned, any key takeaways, or how you solved the problem related to COMMAND._


โฌ…๏ธ Previous: INNER JOIN Next โžก๏ธ JOIN WITH WHERE