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

youngwiki
14번째 줄: 14번째 줄:


===Representing Strong entity set with Composite Attribute===
===Representing Strong entity set with Composite Attribute===
 
먼저, strong entity set이 composite attribute set을 가질 경우, relation schema은 다음과 같이 된다.
# Composite attribute set: composite attribute의 하위 구성 요소들을 분해하여 각각의 attribute들로 변환한다.
#* 예를 들어 name이 first_name, middle_initial, last_name이라는 세개의 하위 attribute로 이루어 진다면, ID와 name으로 이루어진


===Representing Weak entity set===
===Representing Weak entity set===

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

상위 문서: 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

먼저, strong entity set이 composite attribute set을 가질 경우, relation schema은 다음과 같이 된다.

  1. Composite attribute set: composite attribute의 하위 구성 요소들을 분해하여 각각의 attribute들로 변환한다.
    • 예를 들어 name이 first_name, middle_initial, last_name이라는 세개의 하위 attribute로 이루어 진다면, ID와 name으로 이루어진

Representing Weak entity set

각주