메뉴 여닫기
환경 설정 메뉴 여닫기
개인 메뉴 여닫기
로그인하지 않음
지금 편집한다면 당신의 IP 주소가 공개될 수 있습니다.

Reduction to Relation Schemas

noriwiki

상위 문서: 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 (<ins>ID</ins>, 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

각주