<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tgk</author_name>
  <author_url>https://blog.hatena.ne.jp/tgk/</author_url>
  <blog_title>極北データモデリング</blog_title>
  <blog_url>https://tgk.hatenadiary.org/</blog_url>
  <categories>
    <anon>RDB</anon>
    <anon>モデリング</anon>
  </categories>
  <description>オブジェクトモデリングで何だかよく分からないことに、あるデータ項目を属性にするか関連にするかの基準があいまい、というのがある。 怪しい世界だなあと思って見ていたが、考えてみるとデータモデリングの世界もおんなじです。 あるデータ項目を「属性にするのか、新しいエンティティを生成してそこに入れるか」が、流派によって違う。 どの流派も正規形であることは変わらないのだが... 例えばRDBでは、区分コード＝いわゆるフラグを、別のテーブルとのリレーションシップで表すことができる。 で、あんまりやったことないけど、これからは区分コードを極力排除して、区分をリレーションシップで表現することにしようと思ったので…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftgk.hatenadiary.org%2Fentry%2F20061011%2F1160579615&quot; title=&quot;フラグを属性にするか、リレーションシップにするか - 極北データモデリング&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>2006-10-11 00:13:35</published>
  <title>フラグを属性にするか、リレーションシップにするか</title>
  <type>rich</type>
  <url>https://tgk.hatenadiary.org/entry/20061011/1160579615</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
