데이터베이스 과제 3

테이블 (4)

Dependents (Untitled3)

  • dependents id (Key) — char(10) — 기본 키 — NOT NULL
  • id (Key2) — char(10) — 외래 키 → customer.id — NOT NULL
  • name (Field) — char(20)
  • age (Field2) — char(3)

Service (Untitled4)

  • service code (Key) — char(30) — 기본 키 — NOT NULL
  • provider id (Key2) — char(10) — 외래 키 → servive provid.provider id — NOT NULL
  • id (Key22) — char(10) — 외래 키 → servive provid.id — NOT NULL
  • service decription (Field) — char(20)
  • date (Field2) — date

customer (Untitled)

  • id (Key) — char(10) — 기본 키 — NOT NULL
  • name (Field) — char(20)
  • address (Field2) — char(30)
  • phone number (Field3) — char(11)
  • service code (Key2) — char(30) — 외래 키 → Service.service code — NOT NULL
  • provider id (Key22) — char(10) — 외래 키 → Service.provider id — NOT NULL
  • id (Key222) — char(10) — 외래 키 → Service.id — NOT NULL

servive provid (Untitled2)

  • provider id (Key) — char(10) — 기본 키 — NOT NULL
  • id (Key2) — char(10) — 외래 키 → customer.id — NOT NULL
  • name (Field) — char(20)
  • adress (Field2) — char(30)
  • phone number (Field3) — char(11)
  • service code (Key3) — char(30) — 외래 키 → Service.service code — NOT NULL
  • provider id (Key22) — char(10) — 외래 키 → Service.provider id — NOT NULL
  • id (Key222) — char(10) — 외래 키 → Service.id — NOT NULL