<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tohtas</author_name>
  <author_url>https://blog.hatena.ne.jp/tohtas/</author_url>
  <blog_title>適当探訪</blog_title>
  <blog_url>https://tohtas.hatenadiary.org/</blog_url>
  <categories>
    <anon>db</anon>
    <anon>datamodeling</anon>
  </categories>
  <description>部署と従業員のER図。 簡単な入門書とかだとこんな感じかな。 その1 これは、見た瞬間に疑問が湧くわけで。 部署に所属してない従業員の部署IDはNULL？ダミー値？ NULLにした場合、SQLの世界だとTRUE/FALSE/NULLの3値論理なのでイヤーな感じです。 ダミー値にした場合、参照キーであるのに参照元にないキーってのもイヤーな感じ。 ダミー値は破られるためにある、と思うし。破られたときに大変。 というわけで改善案を考える。 その2 この場合、部署に所属している従業員だけ所属部署エンティティのレコードを作成します。 部署に所属してない従業員は所属部署エンティティのレコードはない。 画面…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftohtas.hatenadiary.org%2Fentry%2F20060906%2F1157567830&quot; title=&quot;ER図かんがえる - 適当探訪&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/n/niraikanaibird/20060907/20060907025107.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2006-09-06 03:37:10</published>
  <title>ER図かんがえる</title>
  <type>rich</type>
  <url>https://tohtas.hatenadiary.org/entry/20060906/1157567830</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
