고급DB
테이블 (5)
공급업체 (Supplier)
- 제품번호 (SupplierNo) — int — 기본 키 — NOT NULL
- 제품번호명 (SupplierName) — VarChar(20)
- 제품수량 (SupplierQuantity) — int
- 납품시기 (SupplierDate) — date
- 단가 (SupplierPrice) — int
손님 (Customer)
- 고객ID (CustomerID) — VarChar(20) — 기본 키 — NOT NULL
- 고객이름 (CustomerName) — VarChar(20)
- 생년월일 (CustomerBirth) — date
- 카드정보 (CustomerCard) — int
입고 (Warehousing)
- 입고번호 (WarehousingNo) — int — 기본 키 — NOT NULL
- 수량 (WarehousingQuantity) — int
- 입고시기 (WarehousingDate) — date
- 제품번호 (ProductNo) — int — 외래 키 → 제품.제품번호 — NOT NULL
- 제품번호 (SupplierNo) — int — 외래 키 → 공급업체.제품번호 — NOT NULL
제품 (Product)
- 제품번호 (ProductNo) — int — 기본 키 — NOT NULL
- 제품명 (ProductName) — VarChar(20)
- 가격 (ProductPrice) — int
- 재고수량 (ProductQuantity) — int
주문 (Order)
- 주문번호 (OrderNo) — int — 기본 키 — NOT NULL
- 수량 (OrderQuantity) — int
- 배송지 (OrderLocation) — VarChar(20)
- 고객ID (CustomerID) — VarChar(20) — 외래 키 → 손님.고객ID — NOT NULL
- 제품번호 (ProductNo) — int — 외래 키 → 제품.제품번호 — NOT NULL