0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

erモデル続き
役割role
関連と実体集合の間にも結びつきの意味合いを入れる場合がある

1:1
1:多 
多:多

キー設定
実体を一時的に識別可能であること
余分な属性を含まないこと
これがキーの条件(複数個あるケースも)

集団の名でデータを検索するためには?

実体集合(エンティティ)
学生

属性
学生:氏名、専攻、学生番号、住所

この場合
この属性のどれをキーに決めたら、エンティティを特定できるか?
学籍番号をキーにする!
→余計な要素を含まない

氏名と住所の組み合わせでもキーにできる
学生のマイナンバー、パスポートの番号なども唯一無二→持ってない人がいると空値になる

超キー

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?