exercise(2)

Tables (4)

ACTIVITY

  • Key (actCode) — char(5) — Primary key — NOT NULL
  • Field (actName) — char(20)
  • Field (description) — text

CLASS

  • Key (classID) — char(10) — Primary key — NOT NULL
  • Key (actCode) — char(5) — Foreign key → ACTIVITY.Key — NOT NULL
  • Field (className) — char(20)
  • Field (time) — char(30)
  • Field (maxRegi) — int(3)
  • Field (level) — int(4)

ENROLL

  • Key — Primary key — NOT NULL
  • Key (memID) — char(20) — Foreign key → MEMBER.Key — NOT NULL
  • Key (classID) — char(10) — Foreign key → CLASS.Key — NOT NULL
  • Key (actCode) — char(5) — Foreign key → CLASS.Key — NOT NULL
  • Field (level) — int(4)

MEMBER

  • Key (memID) — char(20) — Primary key — NOT NULL
  • Field (memName) — char(20)
  • Field (birthDate) — date
  • Field (address) — char(30)
  • Field (phone) — char(12)
  • Field (email) — email