madang

테이블 (11)

Dept (Untitled3)

  • dno — 기본 키 — NOT NULL
  • dname
  • office
  • ssn — 외래 키 → Professor.ssn — NOT NULL

Graduate (Untitled4)

  • ssn — 기본 키 — NOT NULL
  • age
  • deg_prog
  • name
  • dno — 외래 키 → Dept.dno — NOT NULL

Professor (Untitled)

  • ssn — 기본 키 — NOT NULL
  • name
  • age
  • rank
  • speciality

Project (Untitled2)

  • pid — 기본 키 — NOT NULL
  • sponsor
  • start_date
  • end_date
  • budget
  • ssn — 외래 키 → Professor.ssn — NOT NULL

work dept (Untitled6)

  • ssn — 외래 키 → Professor.ssn — NOT NULL
  • dno — 외래 키 → Dept.dno — NOT NULL
  • pct_time

work in (Untitled5)

  • ssn — 외래 키 → Professor.ssn — NOT NULL
  • pid — 외래 키 → Project.pid — NOT NULL

work prog (Untitled7)

  • pid — 외래 키 → Project.pid — NOT NULL
  • ssn — 외래 키 → Graduate.ssn — NOT NULL

고객 (Customer)

  • 고객번호 (custid) — Integer — 기본 키 — NOT NULL
  • 이름 (name) — Varchar(40)
  • 주소 (address) — Varchar(40)
  • 전화번호 (phone) — Varchar(30)

도서 (book)

  • 도서번호 (bookid) — Integer — 기본 키 — NOT NULL
  • 도서이름 (bookname) — Varchar(40)
  • 도서단가 (price) — Integer
  • 출판사이름 (pubname) — Varchar(40) — 외래 키 → 출판사.출판사이름 — NOT NULL

주문 (Order)

  • 주문번호 (orderid) — Integer — 기본 키 — NOT NULL
  • 주문일자 (orderdate) — Date
  • 주문금액 (saleprice) — Integer
  • 도서번호 (bookid) — Integer — 외래 키 → 도서.도서번호 — NOT NULL
  • 고객번호 (custid) — Integer — 외래 키 → 고객.고객번호 — NOT NULL

출판사 (Publisher)

  • 출판사이름 (pubname) — Varchar(40) — 기본 키 — NOT NULL
  • 담당자이름 (stname) — Varchar(40)
  • 전화번호 (officephone) — Varchar(30)