emptyclearwater

emptyclearwater - -script to create Clearwater Traders...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
--script to create Clearwater Traders database -- modified 8/30/2007 jchen - DROP TABLE order_line CASCADE CONSTRAINTS; DROP TABLE shipment_line CASCADE CONSTRAINTS; DROP TABLE shipment CASCADE CONSTRAINTS; DROP TABLE inventory CASCADE CONSTRAINTS; DROP TABLE color CASCADE CONSTRAINTS; DROP TABLE item CASCADE CONSTRAINTS; DROP TABLE category CASCADE CONSTRAINTS; DROP TABLE orders CASCADE CONSTRAINTS; DROP TABLE order_source CASCADE CONSTRAINTS; DROP TABLE customer CASCADE CONSTRAINTS; D CREATE TABLE customer (c_id NUMBER(5), c_last VARCHAR2(30), c_first VARCHAR2(30), c_mi CHAR(1), c_dob DATE, c_address VARCHAR2(30), c_city VARCHAR2(30), c_state CHAR(2), c_zip VARCHAR2(10), c_dphone VARCHAR2(10), c_ephone VARCHAR2(10), c_userid VARCHAR2(50), c_password VARCHAR2(15), CONSTRAINT customer_c_id_pk PRIMARY KEY (c_id)); C CREATE TABLE order_source (os_id NUMBER(3), os_desc VARCHAR2(30), CONSTRAINT order_source_os_id_pk PRIMARY KEY(os_id)); C CREATE TABLE orders (o_id NUMBER(8), o_date DATE, o_methpmt VARCHAR2(10),
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 2

emptyclearwater - -script to create Clearwater Traders...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online