ID-Dependent Entities

신예환·2023년 3월 26일
0
post-thumbnail

ID-Dependent Entities

  • An ID-dependent entity is an entity(child) whose identifier includes the identifier of another entity(parent).
  • child의 식별자가 parent의 식별자를 포함하는 것.

Weak Entities

  • A weak entitiy is an entity whose existence depends upon another entity
  • 자신의 존재가 다른 entity에 의존 하고 있는 entity -> 약한 개체
  • ID-Dependenct entities -> Weak entity
    -> 반대는 성립X
  • Identifying relationships are used to represent ID-dependent entities(관계 식별은 ID-Dependent 엔티티를 나타내는 데 사용된다)

Subtype Entities

  • A subtype entity is a special case of a supertype entity
  • STUDENT : UNDERGRADUATE or GRADUATE
  • UNDERGRADUATE or GRADUATE is a STUDENT
  • The supertype may have a discriminator attribute which indicates the subtype.

Exclusive or Inclusive

  • If subtypes are exclusive이면 one supertype relates to at most one subtype, 동시성립이 안되고, 적어도 하나의 subtype에 반드시 관계가 있어야 한다.
  • If subtypes are inclusive이면, one supertype relates to one or more subtype. 하나 이상의 subtypes 에 관계 될 수 있다.

Subtypes : IS-A Relationships

  • Relationships connecting supertypes and subtypes are called IS-A relationships
  • Subtype IS-A Supertype.

Idendtifying relationship vs Nonidentifying relationship

  • Identifying Relationship 은 부모 테이블의 기본키 또는 복합키가 자식 테이블의 기본키 또는 복합키의 구성원으로 전이되며, 관계는 서로 종속되게 된다.(ID-dependent, Weak entity)
  • Non-Identifying Relationship 은 자식 테이블의 일반 속성(Attribute) 그룹의 구성원으로 전이되는 비식별관계로, 부모는 자식의 부분적인 정보만을 표현함을 의미한다.

Strong Entity

  • ID-dependent X, Weak Entity X
profile
더디가도 함께가자

0개의 댓글