<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>upsider_dev</author_name>
  <author_url>https://blog.hatena.ne.jp/upsider_dev/</author_url>
  <blog_title>UPSIDER Techblog</blog_title>
  <blog_url>https://tech.up-sider.com/</blog_url>
  <categories>
    <anon>Backend</anon>
  </categories>
  <description>はじめに 支払い.com バックエンドエンジニアの Kubota です。 普段の業務において、サービスの利用状況を把握するためにユーザーに紐づくデータを SQL で抽出・分析する機会が多くあります。 このような分析では、「関連テーブルに条件を満たすレコードが存在するかどうか」で対象を絞り込むクエリをよく書きます。 例として、「完了した注文が 1 件以上ある顧客」を取得したいケースを考えます。 この種の存在判定は、JOIN + DISTINCT と EXISTS のどちらでも同じ結果セットを得られることがあります。 -- JOIN + DISTINCT を使った SELECT SELECT DI…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.up-sider.com%2Fentry%2F20261013_shiharai&quot; title=&quot;JOIN + DISTINCT と EXISTS、存在判定にどちらを使う？MySQL 8.4 で実行計画を比べてみた - UPSIDER Techblog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/u/upsider_dev/20261013/20261013111445.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-10-13 11:08:58</published>
  <title>JOIN + DISTINCT と EXISTS、存在判定にどちらを使う？MySQL 8.4 で実行計画を比べてみた</title>
  <type>rich</type>
  <url>https://tech.up-sider.com/entry/20261013_shiharai</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
