<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/what-are-semi-anti-and-natural-joins-in-sql--yflqwltag" -->

---
title: What are Semi, Anti, and Natural Joins in SQL? | daily.dev
description: This post introduces three types of joins in SQL: semi join, anti join, and natural join. It explains the differences between these joins and their use cases....
canonical: https://daily.dev/posts/what-are-semi-anti-and-natural-joins-in-sql--yflqwltag
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: What are Semi, Anti, and Natural Joins in SQL? | daily.dev
og:description: This post introduces three types of joins in SQL: semi join, anti join, and natural join. It explains the differences between these joins and their use cases....
og:url: https://daily.dev/posts/what-are-semi-anti-and-natural-joins-in-sql--yflqwltag
og:image: https://api.daily.dev/og/posts/yfLqwLTAg.png
og:image:alt: What are Semi, Anti, and Natural Joins in SQL?
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# What are Semi, Anti, and Natural Joins in SQL?

**[Substack](https://daily.dev/sources/substack)** · 4 min read · 32 upvotes · 0 comments

## Summary

This post introduces three types of joins in SQL: semi join, anti join, and natural join. It explains the differences between these joins and their use cases. The post also provides examples and visual summaries of each join.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.blog.dailydoseofds.com/p/what-are-semi-anti-and-natural-joins>

---

Tags: [#data-science](https://daily.dev/tags/data-science), [#database](https://daily.dev/tags/database), [#sql](https://daily.dev/tags/sql)

[View this post on daily.dev](https://daily.dev/posts/what-are-semi-anti-and-natural-joins-in-sql--yflqwltag)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"What are Semi, Anti, and Natural Joins in SQL?","url":"https://daily.dev/posts/what-are-semi-anti-and-natural-joins-in-sql--yflqwltag","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/what-are-semi-anti-and-natural-joins-in-sql--yflqwltag"},"datePublished":"2024-02-15T06:57:57.320Z","dateModified":"2024-05-09T08:20:02.615Z","description":"This post introduces three types of joins in SQL: semi join, anti join, and natural join. It explains the differences between these joins and their use cases....","image":"https://media.daily.dev/image/fetch/s--QpLCnhW7--/f_auto,pg_1,q_auto/https://substackcdn.com/image/fetch/w_1200%2Ch_600%2Cc_fill%2Cf_jpg%2Cq_auto:good%2Cfl_progressive:steep%2Cg_auto/https%253A%252F%252Fsubstack-post-media.s3.amazonaws.com%252Fpublic%252Fimages%252F4db7598c-0497-46ba-bc8c-ced9070b371d_1028x1114.gif?_a=BAMAMiZY0","thumbnailUrl":"https://media.daily.dev/image/fetch/s--QpLCnhW7--/f_auto,pg_1,q_auto/https://substackcdn.com/image/fetch/w_1200%2Ch_600%2Cc_fill%2Cf_jpg%2Cq_auto:good%2Cfl_progressive:steep%2Cg_auto/https%253A%252F%252Fsubstack-post-media.s3.amazonaws.com%252Fpublic%252Fimages%252F4db7598c-0497-46ba-bc8c-ced9070b371d_1028x1114.gif?_a=BAMAMiZY0","isAccessibleForFree":true,"articleSection":"Substack","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Substack","logo":"https://media.daily.dev/image/upload/s--KFqxX_OL--/f_auto,t_logo/v1698154293/logos/substack.jpg","url":"https://daily.dev/sources/substack"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/what-are-semi-anti-and-natural-joins-in-sql--yflqwltag","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":32},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"data-science,database,sql","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Substack","item":"https://daily.dev/sources/substack"},{"@type":"ListItem","position":3,"name":"What are Semi, Anti, and Natural Joins in SQL?"}]}
```

