Database Design Process

Company Database Preview

Entities and Attributes
Entity: 실세계에 존재하는 독립적인 존재
Attribute: 엔티티를 설명하는 특정 속성

Types of Attributes
Simple(atomic) attributes: Attribute는 쪼갤 수 없는 원자적인 값
Composite attributes: Attribute를 subpart로 나누어 계층 형성 가능

Single-valued attributes: attribute는 단일 값을 가짐
Multivalued attributes: attribute는 복수 값을 가짐
Stored attributes: 실제로 저장된 attribute
Derived attributes: 다른 attribute로 부터 도출되는 attribute
Entity Type
- 같은 attribute 집합을 갖는 Entity들의 집합
- Entity 집합에 대한 스키마를 나타낸다.
- Entity 타입의 이름과 attribute로 설명된다.

- Domain: Attribute에 할당될 수 있는 값들의 집합
Key Attribute
- 각각의 엔티티를 유일하게 식별하는데 이용되는 attribute
- 여러 개의 attribute가 하나의 키를 형성할 수 있다.
- 키는 두 개 이상 있을 수 있다.
- 키는 애초부터 정해지는 것이고, 나중에 키가 될 수 없다.
Initial Conceptual Design of the COMPANY Database

Concepts of Relationship
- Relationship instance: Entity간 연관성을 나타내는 것
- Relationship type: relationship instance들의 집합으로, 참여하는 Entity type과 함께 나타난다.
- WORKS_FOR Relationship

- Relationship Degree: 참여하는 Entity type의 수
- Binary Relationship: Degree가 2인 Relationship type
- Ternary Relationship: Degree가 3인 Relationship type
- SUPPLY Relationship (Ternary example)

- Recursive Relationship: 하나의 Entity type이 한 Relationship type에 두 번 이상 참여할 때, 역할을 명시해야 한다.
- SUPERVISION Relationship (Recursive example)

예를 들어, 1은 Supervisor, 2번은 Supervisee
'Computer Science > Database Systems' 카테고리의 다른 글
| [Database Systems] ER to Relational model (0) | 2025.01.26 |
|---|---|
| [Database Systems] Relational model (0) | 2025.01.19 |
| [Database Systems] ER Diagram (0) | 2025.01.11 |
| [Database Systems] Data, Schema, Data independent (0) | 2025.01.05 |
| [Database Systems] DB, DBMS, DBMS architecture (0) | 2025.01.03 |