1. [Home](<https://delaparra-services.nl/>) 
1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) 
1. [FULL OUTER JOIN](<https://delaparra-services.nl/knowledge-hub/full-outer-join>)

  

Category: SQL 

# FULL OUTER JOIN

  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    

## What is FULL OUTER JOIN?

 

FULL OUTER JOIN: Keeps unmatched rows from BOTH sides, filling missing columns with NULL. A ` FULL OUTER JOIN ` returns all rows from both tables. Where rows match, they are combined. Where a row has no match on the other side, the missing columns are filled with ` NULL `. It is useful for comparing two data sets. Matching an export from your webshop with an export from your accounting system shows orders that exist in only one of them, and those are exactly the ones you want to investigate.

 

Definition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)

 

## Frequently asked questions about FULL OUTER JOIN

  

### What should you keep in mind with FULL OUTER JOIN?

 

MySQL does not support ` FULL OUTER JOIN ` directly. You get the same result by combining a ` LEFT JOIN ` and a ` RIGHT JOIN ` with ` UNION `. PostgreSQL and SQL Server support it natively. In everyday application queries it is rare; it mainly appears in reconciliation and reporting, where missing data is exactly what you are looking for.

    

### What does an example of FULL OUTER JOIN look like?

 

```
SELECT u.name, o.total FROM users u FULL OUTER JOIN orders o ON o.user_id = u.id;
```

 

## At a glance

   CategorySQL Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026

 

## More SQL terms

 

- [DISTINCT](<https://delaparra-services.nl/knowledge-hub/distinct>) 
- [EXISTS](<https://delaparra-services.nl/knowledge-hub/exists>) 
- [EXPLAIN / EXPLAIN ANALYZE](<https://delaparra-services.nl/knowledge-hub/explain-explain-analyze>) 
- [GIN index](<https://delaparra-services.nl/knowledge-hub/gin-index>) 
- [GiST index](<https://delaparra-services.nl/knowledge-hub/gist-index>) 
- [GROUP BY](<https://delaparra-services.nl/knowledge-hub/group-by>)

 

[All terms starting with F](<https://delaparra-services.nl/knowledge-hub#letter-f>)

 

## Skills

 

- ### SQL Performance Optimization Assistant

 

'Universal SQL performance optimization assistant for comprehensive query tuning, indexing strategies, and database performance analysis across all SQL databases (MySQL, PostgreSQL, SQL Server, Oracle). Provides execution plan analysis, pagination optimization, batch operations, and performance monitoring guidance.'

 [View skill](<https://delaparra-services.nl/skills/sql-optimization>) [Download zip](<https://delaparra-services.nl/skills/sql-optimization/download>) 
- ### SQL Code Review

 

'Universal SQL code review assistant that performs comprehensive security, maintainability, and code quality analysis across all SQL databases (MySQL, PostgreSQL, SQL Server, Oracle). Focuses on SQL injection prevention, access control, code standards, and anti-pattern detection. Complements SQL optimization prompt for complete development coverage.'

 [View skill](<https://delaparra-services.nl/skills/sql-code-review>) [Download zip](<https://delaparra-services.nl/skills/sql-code-review/download>) 
- ### Laravel Database Optimization

 

Laravel database optimization patterns. Use when writing Eloquent queries, creating migrations, configuring caching, debugging slow queries, or optimizing database performance. Triggers on tasks involving N+1 queries, indexing, Redis caching, pagination, or database transactions.

 [View skill](<https://delaparra-services.nl/skills/laravel-database-optimization>) [Download zip](<https://delaparra-services.nl/skills/laravel-database-optimization/download>)

 [Download all skills (zip)](<https://delaparra-services.nl/knowledge-hub/full-outer-join/skills.zip>)

 

## Manuals

 

- [Writing SQL queries and migrations](<https://delaparra-services.nl/manuals/sql-queries-en-migraties>) 
- [PHP and Composer](<https://delaparra-services.nl/manuals/php-en-composer>)

 

## Related services

 

- [Custom software and web applications](<https://delaparra-services.nl/services#service-03>)

Perhaps your customers need somewhere to download their invoices, or your staff are managing bookings in a spreadsheet. 
- [AI code review](<https://delaparra-services.nl/services#service-05>)

When you push your new change, I will review your code, help your agent avoid the same mistake again, and get your app ready for deployment.

 

## Need any help?

 

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.

  [Get in touch](<https://delaparra-services.nl/availability>)

[HTML version](https://delaparra-services.nl/knowledge-hub/full-outer-join)
