EER

꾸Jun·2023년 10월 4일
0

📚 Database

목록 보기
9/20

ER Procedure

  1. user requirement.
    • indentify entity type, weak entity type
    • indentify relationship type + indentifying relationship typess
    • identify attributes for weak + entity type and relationship(identifying)
    • identifer attribute. ..


EER(Enhanced ER Model)

전통적인 ER Model의 확장이고, ER Model에 추가적인 구조가 있다.
EER에서 가장 중요한 구조는 supertype과 subtype이다.

  • supertype은 subtype의 generalization이고, subtype은 supertype의 specialization이다.

  • supertype : 일반적인 상위의 entity type
    모든 sub type이 공통적으로 갖고 있는 attribute를 가지고 있음.

  • 공통적으로 가지고 있는 관계까지 상속
  • sub type: entity type에서 각 entity별로 sub grouping으로 나눈것임.( 고유한 관게 + attribute)

  • specialization - subtype이 super type의 specialization

  • generalization - supertype이 ..

  • attribute inheritance : supertype이 가지고 있는 관계까지 상속
    subtype의 entity는 supertype의 entity이다,
    subtype은 그들만의 유니크한 attribute가 있어야함. (굳이 만들었는가에 대한 채점 요소)

ex) a company has three types of employees

  • hourly employee : EID,name,address,hourly_rate
  • salaried employee : EID,name,Address,salary, stock-option(주식)
  • contractor: EID, name, address, contact_ID,billing_rate
  1. 하나로 합침
  • 하나에서 다 볼 수 있음
  • 테이블을 만들었을때, 빈칸이 생김. 공간낭비.
  1. 쪼개기
  • hourly/salary/contractor..
  • 연결이 안되어 있어서 다 찾아야 함
  1. supertype + subtype
  • 공통적인 attribute를 supertype으로 위로 올리고, 고유한 것은 subtype으로 내림
profile
꾸준🐢

0개의 댓글