<영상공부> 관계형 데이터베이(relational database)

김조은·2023년 10월 10일

영상공부 모음

목록 보기
28/49

movie

< relational data model >

set (= domain)

  • 서로 다른(중복되지 않은) elements를 가지는 collection
  • 엘리먼트의 순서는 중요하지 않음

set = domain

  • attribute : 각각의 도메인에 대한 역할 이름
  • tuple : attribute에 각각의 값들로 이루어진 목록들(일부 값은 null)
    -> 이 전체를 relation(table) 이라고 함
    -> 이러한 relation에는 STUDENT라는 relatioN name이 존재


< relationa schema : relation의 구조 >



<relation특징들>

  • elation에서 tuple의 순서는 중요하지 않음
  • 중복된 tuple을 가질 수 없음
  • relation tuple을 식별하기 위해 attribute의 부분 집합을 key로 설정
  • attribute는 atomic해야 함


superkey

: relation에서 tuples를 unique하게 식별할 수 있는 attributes set

candidate key

: 하나의 attribute라도 제거하면 unique하게 tuples를 식별할 수 없는 super key

primary key

: relation에서 tuples를 unique하게 식별하기 위해 선택된 candidate key

unique key

: primary key가 아닌 candidate keys

foreign key

: 다른 relation의 primary key를 참조하는 attributes set

0개의 댓글