Reduction to Relation Schemas: 두 판 사이의 차이

youngwiki
8번째 줄: 8번째 줄:
===Representing Strong entity set===
===Representing Strong entity set===
E가 단순한 descriptive attribute(a<sub>1</sub>, ..., a<sub>n</sub>)만을 가진 strong entity set이라고 하면, 해당 entity를 E라는 이름의 schema로 표현할 수 있다. 이는 다음과 같이 표현된다.
E가 단순한 descriptive attribute(a<sub>1</sub>, ..., a<sub>n</sub>)만을 가진 strong entity set이라고 하면, 해당 entity를 E라는 이름의 schema로 표현할 수 있다. 이는 다음과 같이 표현된다.
<pre>student (__ID__, name, tot_cred)
<pre>student (__ID__, name, tot_cred)</pre>
</pre>
  또한 해당 schema 내에는 n개의 서로 다른 attribute가 존재한다. <br>또한 schema에 존재하는 각 tuple 들은 entity set E 안의 하나의 entity에 해당한다. 또한 해당 entity set의 primary key가 relation schema에서도 primary key로 사용된다.
  또한 해당 schema 내에는 n개의 서로 다른 attribute가 존재한다. <br>또한 schema에 존재하는 각 tuple 들은 entity set E 안의 하나의 entity에 해당한다. 또한 해당 entity set의 primary key가 relation schema에서도 primary key로 사용된다.



2025년 3월 24일 (월) 07:43 판

상위 문서: Entity Relationship Model

개요

E-R model과 Relation model은 유사한 설계 원칙을 사용하고 있어 E-R design을 relation design으로 변환할 수 있다. 이는 각각의 entity set과 relation set마다 해당하는 relation schema가 존재하기 때문이다. 즉, E-R diagram을 대응되는 relation schema의 집합으로 표현할 수 있는 것이다.

Representing Entity set

Representing Strong entity set

E가 단순한 descriptive attribute(a1, ..., an)만을 가진 strong entity set이라고 하면, 해당 entity를 E라는 이름의 schema로 표현할 수 있다. 이는 다음과 같이 표현된다.

student (__ID__, name, tot_cred)
또한 해당 schema 내에는 n개의 서로 다른 attribute가 존재한다. 
또한 schema에 존재하는 각 tuple 들은 entity set E 안의 하나의 entity에 해당한다. 또한 해당 entity set의 primary key가 relation schema에서도 primary key로 사용된다.

Representing Strong entity set with Composite Attribute

Representing Weak entity set

각주