Skip to main content

Command Palette

Search for a command to run...

Data modeling - ERD(Entity Relationship Diagram) practice, 5th week

Study date: 27/Mar/2024, Database system - 4th weeks

Updated
1 min read
H
Hi there, I'm a full time software engineering student, and full time mum based in Brisbane, QLD, Australia. Korean is my native language and English is my second, but I love learning software in English. My posts are a mix of both Korean and English, so there's something for everyone! All my posts come straight from my lecture notes, so follow along my study journey with me <3

Goasl: 개체-관계도 작성 방법을 단계별로 설명할 수 있다. 개체, 관계, 속성, 식별 시 유의사항을 설명할 수 있다. 데이터 요구사항을 분석하고 ERD를 작성할 수 있다.

  1. 개체-관계도 단계별 작성 방법(How to create an entity-relationship diagram step by step): 데이터 요구사항 분석 후 수정->개체선택->관계부여->골격ERD구성-> 속성 부여->완성

      1. 개체선택(Defining entities): 정보의 기본 단위 중요한 명사부분 예)학생, 교수, 과목
  • 개체후보 선정 -> 후보검토 -> 개체식별 결과로 구성
    1. 관계부여(Establishing relationships): 개체 간의 의미 있는 관계 동사 부분
  • 관계형태: 일대일(1:1), 일대다(1:N), 다대일(N:1), 다대다(N:M)

  • 선택적 관계, 필수적 관계, 카디널러티(Cardinality)

    1. 골격ERD구성(Sketch the ERD): 도출된 개체와 관계를 연결하여 전체적인 ERD골격을 구성
  • 중복된 개체나 관계가 있을 경우 이를 검토하여 제거한다

  • 부분적으로 도출된 개체와 관계를 연결하여 하나의 전체적인 다이어그램으로 완성한다.

    1. 속성 부여(Adding attributes): 개체에 속한 속성 추가, 카디날리티, 기본키 등 제약조건이 있을 경우 추가
  • 속성후보 선정 -> 후보검토 -> 속성부여의 순서로 구성
  1. 개체(entity), 관계(relationship), 속성(attributes), 식별 시 유의사항(Facts about)

    • 개체(entity): 개별 집합으로 의미를 갖는 것, 개체 가능성이 있다고 예상되면 일단 검토대상에 올린다. 너무 깊은 의미를 부여하지 않는다. 후보 자격이 있다/없다 정도로만 판단한다.

    • 관계(relationship): 개체의 관계 명칭먼저 정한다. 개체-개체 사이의 관계 존재 여부를 판단한다. 관계형태와 선택/필수 여부를 판단한다.

    • 속성(attributes): 개체가 다를 경우 같은 이름으로 사용할 수 있다.

  2. ERD작성 예시(Create the ERD Diagram)

    출처: 데이터베이스시스템 5주차 강의노트

Database System

Part 9 of 9

데이터베이스 시스템, 3학년 1학기, 나홍석 교수님 Database System

Start from the beginning

Advanced Query Operator in SQL, Database System

고급질의어, 14주 데이터베이스 시스템

More from this blog

My dev journey

142 posts