<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gothedistance</author_name>
  <author_url>https://blog.hatena.ne.jp/gothedistance/</author_url>
  <blog_title>Life is Really Short, Have Your Life!!</blog_title>
  <blog_url>https://aroundthedistance.hatenadiary.jp/</blog_url>
  <categories>
    <anon>Sql</anon>
  </categories>
  <description>テストデータを整備するのに、YというテーブルのIDを外部キーとして持っているA〜Dのテーブルのレコードを集めて１つの表にする必要がありました。こういう時はUNIONの出番です。 select zzz.id, zzz.name from ( selct y.id, y.name, from y_table as y join a_table as a on a.y_id = y.id --A_table union selct y.id, y.name, from y_table as y join b_table as b on b.y_id = y.id --B_table union se…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Faroundthedistance.hatenadiary.jp%2Fentry%2F2016%2F04%2F13%2F090355&quot; title=&quot;UNION句を久しぶりに使ったのでメモ - Life is Really Short, Have Your Life!!&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-04-13 09:03:55</published>
  <title>UNION句を久しぶりに使ったのでメモ</title>
  <type>rich</type>
  <url>https://aroundthedistance.hatenadiary.jp/entry/2016/04/13/090355</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
