<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>pato_taityo</author_name>
  <author_url>https://blog.hatena.ne.jp/pato_taityo/</author_url>
  <blog_title>ぱと隊長日誌</blog_title>
  <blog_url>https://taityo-diary.hatenablog.jp/</blog_url>
  <categories>
    <anon>プログラミング</anon>
    <anon>データベース</anon>
  </categories>
  <description>はじめに 相関サブクエリもしくはEXISTS述語の使い方として、以下のようなSQLがよく取り上げられます。 SELECT * FROM item i WHERE EXISTS (SELECT * FROM stock s WHERE i.id = s.id); これに対して以下のデータが与えられたとします。◆itemテーブル id name 1 みかん 2 バナナ 3 リンゴ 4 ぶどう ◆stockテーブル id quantity 1 10 3 30 この時、EXISTS述語内のサブクエリ&quot;SELECT * FROM stock s WHERE i.id = s.id&quot;だけを見て、以下のよう…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftaityo-diary.hatenablog.jp%2Fentry%2F2017%2F01%2F30%2F075033&quot; title=&quot;SQLのWHERE句で用いられる相関サブクエリを理解する - ぱと隊長日誌&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://images-fe.ssl-images-amazon.com/images/I/51KC99MvHJL._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-01-30 07:50:33</published>
  <title>SQLのWHERE句で用いられる相関サブクエリを理解する</title>
  <type>rich</type>
  <url>https://taityo-diary.hatenablog.jp/entry/2017/01/30/075033</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
