
데이터베이스 설계 프로세스
❑ Requirements Collection and Analysis
❑ Functional Analysis
❑ Conceptual Modeling
- 요구사항 수집 및 분석 이후에 ER 모델 컨셉을 활용하여 개념적 스키마를 만든다
Entitiy-Relationship model (엔티티-관계 모델)
- 데이터를 entity, relationship, attributes로 설명한다
Attributes 타입
❑ Category 1: Composite vs Simple Attributes
■ Composite attributes: can be divided into smaller subparts (forming a hierarchy)
■ Simple (atomic) attributes: non-divisible
❑ Category 2: Single-valued vs Multivalued Attributes
■ Single-valued attributes: have a single value for a particular entity
■ Multivalued-valued attributes: have a set of values for the same entity (phone numbers, college degrees, …)
❑ Category 3: Stored vs Derived Attributes
■ Stored attributes: actually stored in the database (birth date, ...)
■ Derived attributes: not stored in the database, but can be derived from others (age (derived from the birth date))
엔티티 타입
❑ 동일한 attributes 집합을 가진 엔티티들의 집합(모음)
❑ 각각의 엔티티 타입은 그것의 이름과 attributes로 구성된다.
❑ Key Attributes
- Attributes whose values are distinct for each individual entity
- 키 어트리뷰트는 각각의 엔티티를 독립적으로 구별하는데 사용되어질 수 있다.
- 다수의 어트리뷰트가 키를 만들 수 있다. (어트리뷰트 값의 조합이 각각의 엔티티에 따라 고유하여야 한다.)
❑ 하나의 엔티티 타입은 두개 이상의 키를 가질 수 있다
❑ Conceptual Design 관계도에서
밑줄 친 attribute는 key attribute이고, 이중 동그라미로 표시된 attribute는 multivalued attribute이다.
Relationship 타입
❑ 참여하는 엔티티 타입 간의 일련의 연관(associations)을 정의
❑ 특정 엔티티들이 서로 어떻게 연결되는지를 나타내는 추상적인 개념
❑ Relationship set
- 관계 인스턴스 ri의 집합
- Relation on entity sets 𝐸1, 𝐸2, … , 𝐸n
❑ Degree of a Relationship Type
- Number of participating entity types (Binary, ternary, …)
❑ Role Name
- Signifying a role
❑ Recursive Relationship

Constrains on Relationship Types
Constraint 1 : Cardinality Ratio (카디널리티 비율)
- 1:1Cardinality Ratio
- 1:N Cardinality Ratio

- M:NCardinality Ratio

Constraint 2 : Participation Constraint
❑Total Participation
■ Every entity should participate in the relationship
❑Partial Participation
■ Every entity does not need to participate in the relationship
Attributes of Relationship Types
❑ Attributes of 1:1 or 1:N relationship types can be migrated to one of the participating entity types
❑ Attributes of M:N Relationship Types may be determined only by the combination of participating entities in a relationship instance
ex) Hours for WORKS_ON : hours per week an employee ‘works on’ a project is determined by an employee-project combination. Hours cannot be migrated into one of the participating entities
Weak Entity Types
- 키 어트리뷰트를 가지지 않는 엔티티 타입
- Identified by being related to specific entities from another entity type (identifying entitiy type)
Identifying Relationship
weak 엔티티 타입을 그것의 identifying(owner) 엔티티 타입과 관계시키는 relationship
항상 total participation constraint를 가진다
Partial Key
같은 owner 엔티티에 관련되어 있는 weak 엔티티를 구별한다.