CREATE TABLE customer ( CustNo CHAR(8), CustFirstName VARCHAR2(20) CONSTRAINT CustFirstNameRequired NOT NULL, CustLastName VARCHAR2(30) CONSTRAINT CustLastNameRequired NOT NULL, CustStreet VARCHAR2(50), CustCity VARCHAR2(30), CustState CHAR(2), CustZip CHAR(10), CustBal DECIMAL(12,2) DEFAULT 0, CONSTRAINT PKCustomer PRIMARY KEY (CustNo) ); CREATE TABLE Employee ( EmpNo CHAR(8), EmpFirstName VARCHAR2(20) CONSTRAINT EmpFirstNameRequired NOT NULL, EmpLastName VARCHAR2(30) CONSTRAINT EmpLastNameRequired NOT NULL, EmpPhone CHAR(15), EmpEMail VARCHAR(50) CONSTRAINT EmpEMailRequired NOT NULL, SupEmpNo CHAR(8), EmpCommRate DECIMAL(3,3), CONSTRAINT PKEmployee PRIMARY KEY (EmpNo), CONSTRAINT UniqueEMail UNIQUE(EmpEMail), CONSTRAINT FKSupEmpNo FOREIGN KEY (SupEmpNo) REFERENCES Employee ) CREATE TABLE Order ( OrdNo CHAR(8), OrdDate DATE CONSTRAINT OrdDateRequired NOT NULL, CustNo CHAR(8) CONSTRAINT CustNoRequired NOT NULL, EmpNo CHAR(8), OrdName VARCHAR2(50), OrdStreet VARCHAR2(50), OrdCity VARCHAR2(30), OrdState CHAR(2), OrdZip CHAR(10), CONSTRAINT PKOrderTbl PRIMARY KEY (OrdNo), CONSTRAINT FKCustNo FOREIGN KEY (CustNo) REFERENCES Customer, CONSTRAINT FKEmpNo FOREIGN KEY (EmpNo) REFERENCES Employee ); CREATE TABLE OrdLine ( OrdNo CHAR(8), ProdNo CHAR(8), Qty INTEGER DEFAULT 1, CONSTRAINT PKOrdLine PRIMARY KEY (OrdNo, ProdNo), CONSTRAINT FKOrdNo FOREIGN KEY (OrdNo) REFERENCES Order ON DELETE CASCADE, CONSTRAINT FKProdNo FOREIGN KEY (ProdNo) REFERENCES Product ); CREATE TABLE Product ( ProdNo CHAR(8), ProdName VARCHAR2(50) CONSTRAINT ProdNameRequired NOT NULL, ProdMfg VARCHAR2(20) CONSTRAINT ProdMfgRequired NOT NULL, ProdQOH INTEGER, ProdPrice DECIMAL(12,2), ProdNextShipDate DATE, CONSTRAINT PKProduct PRIMARY KEY (ProdNo) );