<?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>注文テーブルに「作成者」「更新者」の２つのカラムがあります。そのテーブルの作成者と更新者にはユーザーテーブルのユーザーIDが入っているものとします。その作成者と更新者の氏名を、注文テーブルに連結して以下の様な一覧を作れないか、と。 作成者ID 作成者名 更新者ID 更新者名 注文日 1 山田太朗 5 田中一郎 2014/02/02 結局、こういうSQLになりました。 select o.user_id, (select name from users where id= o.user_id), update_user_id, (select name from users where id=o.…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Faroundthedistance.hatenadiary.jp%2Fentry%2F2014%2F02%2F03%2F202626&quot; title=&quot;JOINで複数カラムを同一テーブルで結合したデータを出したい - 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>2014-02-03 20:26:26</published>
  <title>JOINで複数カラムを同一テーブルで結合したデータを出したい</title>
  <type>rich</type>
  <url>https://aroundthedistance.hatenadiary.jp/entry/2014/02/03/202626</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
