본문 바로가기
Computer Science/Database Systems

[Database Systems] Requirements

by __K.Jun__ 2025. 1. 8.

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

728x90