난이도상_실습1

테이블 (4)

고객정보 (tbl_customer)

  • 고객번호 (customer_no) — number(10) — 기본 키 — NOT NULL
  • 고객이름 (customer_name) — varchar2(21)
  • 고객주소 (customer_adress) — varchar2(100)
  • 주민번호 (customer_pid) — number(13)

구매정보 (tbl_buy)

  • 구매코드 (buy_code) — number(10) — 기본 키 — NOT NULL
  • 물품번호 (product_no) — number(10) — 외래 키 → 물품정보.물품번호 — NOT NULL
  • 구매날짜 (buy_date) — date
  • 구매수량 (buy_amount) — number(10)
  • 고객번호 (customer_no) — number(10) — 외래 키 → 고객정보.고객번호 — NOT NULL

물품정보 (tbl_product)

  • 물품번호 (product_no) — number(10) — 기본 키 — NOT NULL
  • 품명 (product_name) — varchar2(100)
  • 단가 (product_price) — number(100)
  • 수량 (product_remain) — number(10)
  • 제조사번호 (plant_no) — number(10) — 외래 키 → 제조사정보.제조사번호 — NOT NULL

제조사정보 (tbl_plant)

  • 제조사번호 (plant_no) — number(10) — 기본 키 — NOT NULL
  • 사명 (plant_name) — varchar2(100)
  • 회사주소 (plant_adress) — varchar2(100)
  • 회사전화번호 (plant_phone) — number(11)