Table Key 용어

dragonappear·2023년 7월 12일

Database 101

목록 보기
9/10


Key

bank_nameaccount_numaccount_idclassratioempl_idempl_namecard_id

Super Key

테이블에서 tuple(s)을 unique하게 식별할 수 있는 attribute(s) set

Candidate Key

어느 한 attribute라도 제거하면 unique하게 tuple들을 식별할 수 없는 Super Key

{account_id}, {bank_name,account_num}

(candidate)를 생략하고 key라고도 부름

Primary Key

테이블에서 tuple들을 unique하게 식별하려고 선택된 (candidate) key

{account_id}

Prime attribute

임의의 후보 key에 속한 attribute

account_id,bank_name, account_num

Non-Prime attribute

임의의 후보 key에 속하지 않는 attribute

account_id,bank_name, account_num 제외하고 나머지 attribute

Foreign Key

다른 테이블과의 관계를 형성하기 위한 다른 테이블의 기본키

Composite Key

두개 이상의 attribute로 구성된 후보 키

{bank_name,account_num}

Alternate Key

후보 키 중 기본 키가 아닌 후보 키

0개의 댓글