SlideShare a Scribd company logo
Use this script for the assignment.
Please follow instructions as to what to turn in.
USE MYSQL ONLY.
# orderentrydbScript.sql
# REV 3 Updated 05/15/2017 Added employee comm pct to
employee name Theresa Beck
# Script to build the Order Entry Database
# Creates tables and inserts data for this assignment
# into an already open database.
#
# Drop database if exists for a clean copy
Drop database if exists orderentrydb;
# Assumes student has created a database and activated it.
# Create Database before you begin to populate data
Create Database orderentrydb;
Use orderentrydb;
# Remove tables if they already exist
# Useful if it's not your first time trying this script
DROP TABLE if exists ordline ;
Drop TABLE if exists OrderTBL ;
DROP TABLE if exists Customer ;
DROP TABLE if exists Employee ;
DROP TABLE if exists Product ;
# Create the Product Table
CREATE TABLE Product
( ProdNo CHAR(8),
ProdName VARCHAR(50) NOT NULL,
ProdMfg varchar(20) NOT NULL,
ProdQOH decimal(10,2),
ProdPrice DECIMAL(12,2),
ProdNextShipDate DATE,
PRIMARY KEY (ProdNo) );
# Put data into the Product Table
INSERT INTO product
(ProdNo, ProdName, ProdMfg, ProdQOH, ProdNextShipDate,
ProdPrice)
VALUES ('P0036566','17 inch Color Monitor','ColorMeg,
Inc.',12,'2007-02-20',169.00);
INSERT INTO product
(ProdNo, ProdName, ProdMfg, ProdQOH, ProdNextShipDate,
ProdPrice)
VALUES ('P0036577','19 inch Color Monitor','ColorMeg,
Inc.',10,'2007-02-20',319.00);
INSERT INTO product
(ProdNo, ProdName, ProdMfg, ProdQOH, ProdNextShipDate,
ProdPrice)
VALUES ('P1114590','R3000 Color Laser
Printer','Connex',5,'2007-01-22',699.00);
INSERT INTO product
(ProdNo, ProdName, ProdMfg, ProdQOH, ProdNextShipDate,
ProdPrice)
VALUES ('P1412138','10 Foot Printer
Cable','Ethlite',100,null,12.00);
INSERT INTO product
(ProdNo, ProdName, ProdMfg, ProdQOH, ProdNextShipDate,
ProdPrice)
VALUES ('P1445671','8-Outlet Surge
Protector','Intersafe',33,null,14.99);
INSERT INTO product
(ProdNo, ProdName, ProdMfg, ProdQOH, ProdNextShipDate,
ProdPrice)
VALUES ('P1556678','CVP Ink Jet Color Printer','Connex',8,
'2007-01-22',99.00);
INSERT INTO product
(ProdNo, ProdName, ProdMfg, ProdQOH, ProdNextShipDate,
ProdPrice)
VALUES ('P3455443','Color Ink Jet
Cartridge','Connex',24,'2007-01-22',38.00);
INSERT INTO product
(ProdNo, ProdName, ProdMfg, ProdQOH, ProdNextShipDate,
ProdPrice)
VALUES ('P6677900','Black Ink Jet
Cartridge','Connex',44,null,25.69);
INSERT INTO product
(ProdNo, ProdName, ProdMfg, ProdQOH, ProdNextShipDate,
ProdPrice)
VALUES ('P9995676','Battery Back-up
System','Cybercx',12,'2007-02-01',89.00);
INSERT INTO product
(ProdNo, ProdName, ProdMfg, ProdQOH, ProdNextShipDate,
ProdPrice)
VALUES ('P4200344','36-Bit Color Scanner','UV
Components',16,'2007-01-29',199.99);
# Create the Employee Table
CREATE TABLE Employee
( EmpNo varCHAR(8),
EmpFirstName varchar(20) NOT NULL,
EmpLastName varchar(30) NOT NULL,
EmpPhone varCHAR(15),
EmpEMail VARCHAR(50) NOT NULL,
SupEmpNo varCHAR(8) REFERENCES Employee
(SupEmpNo),
EmpCommRateDECIMAL(3,3),
PRIMARY KEY (EmpNo),
UNIQUE(EmpEMail))
;
# Put data into the Employee table
INSERT INTO employee (EmpNo, EmpFirstName,
EmpLastName, EmpPhone, EmpEMail,
SupEmpNo, EmpCommRate)
VALUES ('E9884325','Thomas','Johnson','(303) 556-9987','
[email protected]
','',0.05);
INSERT INTO employee
(EmpNo, EmpFirstName, EmpLastName, EmpPhone,
EmpEMail,
SupEmpNo, EmpCommRate)
VALUES ('E8843211','Amy','Tang','(303) 556-4321','
[email protected]
','E9884325',0.04);
INSERT INTO employee
(EmpNo, EmpFirstName, EmpLastName, EmpPhone,
EmpEMail,
SupEmpNo, EmpCommRate)
VALUES ('E9345771','Colin','White','(303) 221-4453','
[email protected]
','E9884325',0.04);
INSERT INTO employee
(EmpNo, EmpFirstName, EmpLastName, EmpPhone,
EmpEMail,
SupEmpNo, EmpCommRate)
VALUES ('E1329594','Landi','Santos','(303) 789-1234','
[email protected]
','E8843211',0.02);
INSERT INTO employee
(EmpNo, EmpFirstName, EmpLastName, EmpPhone,
EmpEMail,
SupEmpNo, EmpCommRate)
VALUES ('E8544399','Joe','Jenkins','(303) 221-9875','
[email protected]
','E8843211',0.02);
INSERT INTO employee
(EmpNo, EmpFirstName, EmpLastName, EmpPhone,
EmpEMail,
SupEmpNo, EmpCommRate)
VALUES ('E9954302','Mary','Hill','(303) 556-9871','
[email protected]
','E8843211',0.02);
INSERT INTO employee
(EmpNo, EmpFirstName, EmpLastName, EmpPhone,
EmpEMail,
SupEmpNo)
VALUES ('E9973110','Theresa','Beck','(720) 320-2234','
[email protected]
','E9884325');
# update employee commission rate for assignment 5.2 - change
requested 12/3/2016
Update employee set empcommrate=0.01 where
empno='E9973110' and empfirstname='Theresa';
# Create the Customer Table
CREATE TABLE Customer
( CustNo varCHAR(8),
CustFirstName varchar(20) NOT NULL,
CustLastName varchar(30) NOT NULL,
CustStreetvarchar(50),
CustCityvarchar(30),
CustStatevarCHAR(2),
CustZipvarCHAR(10),
CustBalDECIMAL(12,2),
PRIMARY KEY (CustNo) );
# Put data into the Customer table
INSERT INTO customer
(CustNo, CustFirstName, CustLastName, CustStreet, CustCity,
CustState, CustZip, CustBal)
VALUES('C0954327','Sheri','Gordon','336 Hill
St.','Littleton','CO','80129-5543',230.00);
INSERT INTO customer
(CustNo, CustFirstName, CustLastName, CustStreet, CustCity,
CustState, CustZip, CustBal)
VALUES('C1010398','Jim','Glussman','1432 E.
Ravenna','Denver','CO','80111-0033',200.00);
INSERT INTO customer
(CustNo, CustFirstName, CustLastName, CustStreet, CustCity,
CustState, CustZip, CustBal)
VALUES('C2388597','Beth','Taylor','2396 Rafter
Rd','Seattle','WA','98103-1121',500.00);
INSERT INTO customer
(CustNo, CustFirstName, CustLastName, CustStreet, CustCity,
CustState, CustZip, CustBal)
VALUES('C3340959','Betty','Wise','4334 153rd
NW','Seattle','WA','98178-3311',200.00);
INSERT INTO customer
(CustNo, CustFirstName, CustLastName, CustStreet, CustCity,
CustState, CustZip, CustBal)
VALUES('C3499503','Bob','Mann','1190 Lorraine
Cir.','Monroe','WA','98013-1095',0.00);
INSERT INTO customer
(CustNo, CustFirstName, CustLastName, CustStreet, CustCity,
CustState, CustZip, CustBal)
VALUES('C8543321','Ron','Thompson','789 122nd
St.','Renton','WA','98666-1289',85.00);
INSERT INTO customer
(CustNo, CustFirstName, CustLastName, CustStreet, CustCity,
CustState, CustZip, CustBal)
VALUES('C8574932','Wally','Jones','411 Webber
Ave.','Seattle','WA','98105-1093',1500.00);
INSERT INTO customer
(CustNo, CustFirstName, CustLastName, CustStreet, CustCity,
CustState, CustZip, CustBal)
VALUES('C8654390','Candy','Kendall','456 Pine
St.','Seattle','WA','98105-3345',50.00);
INSERT INTO customer
(CustNo, CustFirstName, CustLastName, CustStreet, CustCity,
CustState, CustZip, CustBal)
VALUES('C9128574','Jerry','Wyatt','16212 123rd
Ct.','Denver','CO','80222-0022',100.00);
INSERT INTO customer
(CustNo, CustFirstName, CustLastName, CustStreet, CustCity,
CustState, CustZip, CustBal)
VALUES('C9403348','Mike','Boren','642 Crest
Ave.','Englewood','CO','80113-5431',0.00);
INSERT INTO customer
(CustNo, CustFirstName, CustLastName, CustStreet, CustCity,
CustState, CustZip, CustBal)
VALUES('C9432910','Larry','Styles','9825 S. Crest
Lane','Bellevue','WA','98104-2211',250.00);
INSERT INTO customer
(CustNo, CustFirstName, CustLastName, CustStreet, CustCity,
CustState, CustZip, CustBal)
VALUES('C9543029','Sharon','Johnson','1223 Meyer
Way','Fife','WA','98222-1123',856.00);
INSERT INTO customer
(CustNo, CustFirstName, CustLastName, CustStreet, CustCity,
CustState, CustZip, CustBal)
VALUES('C9549302','Todd','Hayes','1400 NW
88th','Lynnwood','WA','98036-2244',0.00);
INSERT INTO customer
(CustNo, CustFirstName, CustLastName, CustStreet, CustCity,
CustState, CustZip, CustBal)
VALUES('C9857432','Homer','Wells','123 Main
St.','Seattle','WA','98105-4322',500.00);
INSERT INTO customer
(CustNo, CustFirstName, CustLastName, CustStreet, CustCity,
CustState, CustZip, CustBal)
VALUES('C9865874','Mary','Hill','206
McCaffrey','Littleton','CO','80129-5543',150.00);
INSERT INTO customer
(CustNo, CustFirstName, CustLastName, CustStreet, CustCity,
CustState, CustZip, CustBal)
VALUES('C9943201','Harry','Sanders','1280 S. Hill
Rd.','Fife','WA','98222-2258',1000.00);
# Create the OrderTbl table
CREATE TABLE OrderTbl
( OrdNo varchar(8),
OrdDate DATE NOT NULL,
CustNo varchar(8) NOT NULL REFERENCES
Customer(custNo),
EmpNo varchar(8) REFERENCES Employee (EmpNo),
OrdName varchar(50),
OrdStreet varchar(50),
OrdCity varchar(30),
OrdState varchar(2),
OrdZip varchar(10),
PRIMARY KEY (OrdNo)
);
# Put data into the OrderTbl table
INSERT INTO ordertbl
(OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet,
OrdCity,
OrdState, OrdZip)
VALUES ('O1116324','2007-01-
23','C0954327','E8544399','Sheri Gordon','336 Hill
St.','Littleton','CO','80129-5543');
INSERT INTO ordertbl
(OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet,
OrdCity,
OrdState, OrdZip)
VALUES ('O1231231','2007-01-
23','C9432910','E9954302','Larry Styles','9825 S. Crest
Lane','Bellevue','WA','98104-2211');
INSERT INTO ordertbl
(OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet,
OrdCity,
OrdState, OrdZip)
VALUES ('O1241518','2007-02-10','C9549302','','Todd
Hayes','1400 NW 88th','Lynnwood','WA','98036-2244');
INSERT INTO ordertbl
(OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet,
OrdCity,
OrdState, OrdZip)
VALUES ('O1455122','2007-01-
09','C8574932','E9345771','Wally Jones','411 Webber
Ave.','Seattle','WA','98105-1093');
INSERT INTO ordertbl
(OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet,
OrdCity,
OrdState, OrdZip)
VALUES ('O1579999','2007-01-05','C9543029','E8544399','Tom
Johnson','1632 Ocean Dr.','Des Moines','WA','98222-1123');
INSERT INTO ordertbl
(OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet,
OrdCity,
OrdState, OrdZip)
VALUES ('O1615141','2007-01-
23','C8654390','E8544399','Candy Kendall','456 Pine
St.','Seattle','WA','98105-3345');
INSERT INTO ordertbl
(OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet,
OrdCity,
OrdState, OrdZip)
VALUES ('O1656777','2007-02-11','C8543321','','Ron
Thompson','789 122nd St.','Renton','WA','98666-1289');
INSERT INTO ordertbl
(OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet,
OrdCity,
OrdState, OrdZip)
VALUES ('O2233457','2007-01-
12','C2388597','E9884325','Beth Taylor','2396 Rafter
Rd','Seattle','WA','98103-1121');
INSERT INTO ordertbl
(OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet,
OrdCity,
OrdState, OrdZip)
VALUES ('O2334661','2007-01-
14','C0954327','E1329594','Mrs. Ruth Gordon','233 S.
166th','Seattle','WA','98011');
INSERT INTO ordertbl
(OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet,
OrdCity,
OrdState, OrdZip)
VALUES ('O3252629','2007-01-
23','C9403348','E9954302','Mike Boren','642 Crest
Ave.','Englewood','CO','80113-5431');
INSERT INTO ordertbl
(OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet,
OrdCity,
OrdState, OrdZip)
VALUES ('O3331222','2007-01-15','C1010398','','Jim
Glussman','1432 E. Ravenna','Denver','CO','80111-0033');
INSERT INTO ordertbl
(OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet,
OrdCity,
OrdState, OrdZip)
VALUES ('O3377543','2007-01-
15','C9128574','E8843211','Jerry Wyatt','16212 123rd
Ct.','Denver','CO','80222-0022');
INSERT INTO ordertbl
(OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet,
OrdCity,
OrdState, OrdZip)
VALUES ('O4714645','2007-01-
11','C2388597','E1329594','Beth Taylor','2396 Rafter
Rd','Seattle','WA','98103-1121');
INSERT INTO ordertbl
(OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet,
OrdCity,
OrdState, OrdZip)
VALUES ('O5511365','2007-01-
22','C3340959','E9884325','Betty White','4334 153rd
NW','Seattle','WA','98178-3311');
INSERT INTO ordertbl
(OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet,
OrdCity,
OrdState, OrdZip)
VALUES ('O6565656','2007-01-20','C9865874','E8843211','Mr.
Jack Sibley','166 E. 344th','Renton','WA','98006-5543');
INSERT INTO ordertbl
(OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet,
OrdCity,
OrdState, OrdZip)
VALUES ('O7847172','2007-01-23','C9943201','','Harry
Sanders','1280 S. Hill Rd.','Fife','WA','98222-2258');
INSERT INTO ordertbl
(OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet,
OrdCity,
OrdState, OrdZip)
VALUES ('O7959898','2007-02-19','C8543321','E8544399','Ron
Thompson','789 122nd St.','Renton','WA','98666-1289');
INSERT INTO ordertbl
(OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet,
OrdCity,
OrdState, OrdZip)
VALUES ('O7989497','2007-01-16','C3499503','E9345771','Bob
Mann','1190 Lorraine Cir.','Monroe','WA','98013-1095');
INSERT INTO ordertbl
(OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet,
OrdCity,
OrdState, OrdZip)
VALUES ('O8979495','2007-01-
23','C9865874','','HelenSibley','206
McCaffrey','Renton','WA','98006-5543');
INSERT INTO ordertbl
(OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet,
OrdCity,
OrdState, OrdZip)
VALUES ('O9919699','2007-02-
11','C9857432','E9954302','Homer Wells','123 Main
St.','Seattle','WA','98105-4322');
# Create the OrdLine table
CREATE TABLE OrdLine
( OrdNo CHAR(8),
ProdNoCHAR(8),
QtyINTEGER DEFAULT 1,
CONSTRAINT PKOrdLine PRIMARY KEY (OrdNo, ProdNo),
CONSTRAINT FKOrdNo FOREIGN KEY (OrdNo)
REFERENCES OrderTbl(OrdNo)
ON DELETE CASCADE,
CONSTRAINT FKProdNo FOREIGN KEY (ProdNo)
REFERENCES Product(ProdNo) );
# Put data into the OrdLine table
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O1116324','P1445671',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O1231231','P0036566',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O1231231','P1445671',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O1241518','P0036577',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O1455122','P4200344',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O1579999','P1556678',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O1579999','P6677900',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O1579999','P9995676',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O1615141','P0036566',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O1615141','P1445671',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O1615141','P4200344',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O1656777','P1445671',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O1656777','P1556678',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O2233457','P0036577',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O2233457','P1445671',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O2334661','P0036566',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O2334661','P1412138',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O2334661','P1556678',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O3252629','P4200344',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O3252629','P9995676',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O3331222','P1412138',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O3331222','P1556678',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O3331222','P3455443',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O3377543','P1445671',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O3377543','P9995676',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O4714645','P0036566',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O4714645','P9995676',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O5511365','P1412138',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O5511365','P1445671',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O5511365','P1556678',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O5511365','P3455443',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O5511365','P6677900',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O6565656','P0036566',10);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O7847172','P1556678',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O7847172','P6677900',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O7959898','P1412138',5);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O7959898','P1556678',5);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O7959898','P3455443',5);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O7959898','P6677900',5);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O7989497','P1114590',2);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O7989497','P1412138',2);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O7989497','P1445671',3);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O8979495','P1114590',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O8979495','P1412138',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O8979495','P1445671',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O9919699','P0036577',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O9919699','P1114590',1);
INSERT INTO ordline
(OrdNo, ProdNo, Qty)
VALUES('O9919699','P4200344',1);
Use this script for the assignment.Please follow instructions as t.docx

More Related Content

Similar to Use this script for the assignment.Please follow instructions as t.docx

SPOOL output.log DROP TABL.pdf
SPOOL output.log DROP TABL.pdfSPOOL output.log DROP TABL.pdf
SPOOL output.log DROP TABL.pdf
fashionfootwear1
 
Script de creación de la base de datos pedidos en MS Access
Script de creación de la base de datos pedidos en MS AccessScript de creación de la base de datos pedidos en MS Access
Script de creación de la base de datos pedidos en MS AccessZantiago Thrash
 
SQL structure query language full presentation
SQL structure query language full presentationSQL structure query language full presentation
SQL structure query language full presentation
JKarthickMyilvahanan
 
Investigation of Transactions in Cassandra
Investigation of Transactions in CassandraInvestigation of Transactions in Cassandra
Investigation of Transactions in Cassandra
datastaxjp
 
DN 2017 | Reducing pain in data engineering | Martin Loetzsch | Project A
DN 2017 | Reducing pain in data engineering | Martin Loetzsch | Project ADN 2017 | Reducing pain in data engineering | Martin Loetzsch | Project A
DN 2017 | Reducing pain in data engineering | Martin Loetzsch | Project A
Dataconomy Media
 
Scott sql script as per exercise1
Scott sql script as per exercise1Scott sql script as per exercise1
Scott sql script as per exercise1
AjayMaheshwari17
 
ZEN-ass2-schm1509.sql---- ITECH1006 Assignment 2 Zen Chirop.docx
ZEN-ass2-schm1509.sql---- ITECH1006 Assignment 2 Zen Chirop.docxZEN-ass2-schm1509.sql---- ITECH1006 Assignment 2 Zen Chirop.docx
ZEN-ass2-schm1509.sql---- ITECH1006 Assignment 2 Zen Chirop.docx
danielfoster65629
 
Performante Java Enterprise Applikationen trotz O/R-Mapping
Performante Java Enterprise Applikationen trotz O/R-MappingPerformante Java Enterprise Applikationen trotz O/R-Mapping
Performante Java Enterprise Applikationen trotz O/R-Mapping
Simon Martinelli
 
Business Intelligence Portfolio
Business Intelligence PortfolioBusiness Intelligence Portfolio
Business Intelligence Portfolio
Bob Litsinger
 
BD I - Aula 13 B - Agrupando dados - Parte 04 - Exercicios Enunciado
BD I - Aula 13 B - Agrupando dados  - Parte 04 - Exercicios EnunciadoBD I - Aula 13 B - Agrupando dados  - Parte 04 - Exercicios Enunciado
BD I - Aula 13 B - Agrupando dados - Parte 04 - Exercicios Enunciado
Rodrigo Kiyoshi Saito
 
BD I - Aula 13 B - Agrupando Dados - Parte 04 - Exercicios Enunciado
BD I - Aula 13 B - Agrupando Dados  - Parte 04 - Exercicios EnunciadoBD I - Aula 13 B - Agrupando Dados  - Parte 04 - Exercicios Enunciado
BD I - Aula 13 B - Agrupando Dados - Parte 04 - Exercicios Enunciado
Rodrigo Kiyoshi Saito
 
Appendix A Tables
Appendix A   TablesAppendix A   Tables
Appendix A TablesLiquidHub
 
Here is the company database--comments can be addedD.pdf
Here is the company database--comments can be addedD.pdfHere is the company database--comments can be addedD.pdf
Here is the company database--comments can be addedD.pdf
fckindswear
 
Unit testing with zend framework tek11
Unit testing with zend framework tek11Unit testing with zend framework tek11
Unit testing with zend framework tek11
Michelangelo van Dam
 
Appendix A Tables
Appendix A   TablesAppendix A   Tables
Appendix A TablesLiquidHub
 
JKJ_T SQL project code samples
JKJ_T SQL project code samplesJKJ_T SQL project code samples
JKJ_T SQL project code samples
Jeff Jacob
 
Open Source Search: An Analysis
Open Source Search: An AnalysisOpen Source Search: An Analysis
Open Source Search: An Analysis
Justin Finkelstein
 
T sql denali code Day of .Net
T sql denali code Day of .NetT sql denali code Day of .Net
T sql denali code Day of .NetKathiK58
 

Similar to Use this script for the assignment.Please follow instructions as t.docx (20)

SPOOL output.log DROP TABL.pdf
SPOOL output.log DROP TABL.pdfSPOOL output.log DROP TABL.pdf
SPOOL output.log DROP TABL.pdf
 
Script de creación de la base de datos pedidos en MS Access
Script de creación de la base de datos pedidos en MS AccessScript de creación de la base de datos pedidos en MS Access
Script de creación de la base de datos pedidos en MS Access
 
SQL structure query language full presentation
SQL structure query language full presentationSQL structure query language full presentation
SQL structure query language full presentation
 
Investigation of Transactions in Cassandra
Investigation of Transactions in CassandraInvestigation of Transactions in Cassandra
Investigation of Transactions in Cassandra
 
DN 2017 | Reducing pain in data engineering | Martin Loetzsch | Project A
DN 2017 | Reducing pain in data engineering | Martin Loetzsch | Project ADN 2017 | Reducing pain in data engineering | Martin Loetzsch | Project A
DN 2017 | Reducing pain in data engineering | Martin Loetzsch | Project A
 
Scott sql script as per exercise1
Scott sql script as per exercise1Scott sql script as per exercise1
Scott sql script as per exercise1
 
ZEN-ass2-schm1509.sql---- ITECH1006 Assignment 2 Zen Chirop.docx
ZEN-ass2-schm1509.sql---- ITECH1006 Assignment 2 Zen Chirop.docxZEN-ass2-schm1509.sql---- ITECH1006 Assignment 2 Zen Chirop.docx
ZEN-ass2-schm1509.sql---- ITECH1006 Assignment 2 Zen Chirop.docx
 
Benforta
BenfortaBenforta
Benforta
 
Benforta
BenfortaBenforta
Benforta
 
Performante Java Enterprise Applikationen trotz O/R-Mapping
Performante Java Enterprise Applikationen trotz O/R-MappingPerformante Java Enterprise Applikationen trotz O/R-Mapping
Performante Java Enterprise Applikationen trotz O/R-Mapping
 
Business Intelligence Portfolio
Business Intelligence PortfolioBusiness Intelligence Portfolio
Business Intelligence Portfolio
 
BD I - Aula 13 B - Agrupando dados - Parte 04 - Exercicios Enunciado
BD I - Aula 13 B - Agrupando dados  - Parte 04 - Exercicios EnunciadoBD I - Aula 13 B - Agrupando dados  - Parte 04 - Exercicios Enunciado
BD I - Aula 13 B - Agrupando dados - Parte 04 - Exercicios Enunciado
 
BD I - Aula 13 B - Agrupando Dados - Parte 04 - Exercicios Enunciado
BD I - Aula 13 B - Agrupando Dados  - Parte 04 - Exercicios EnunciadoBD I - Aula 13 B - Agrupando Dados  - Parte 04 - Exercicios Enunciado
BD I - Aula 13 B - Agrupando Dados - Parte 04 - Exercicios Enunciado
 
Appendix A Tables
Appendix A   TablesAppendix A   Tables
Appendix A Tables
 
Here is the company database--comments can be addedD.pdf
Here is the company database--comments can be addedD.pdfHere is the company database--comments can be addedD.pdf
Here is the company database--comments can be addedD.pdf
 
Unit testing with zend framework tek11
Unit testing with zend framework tek11Unit testing with zend framework tek11
Unit testing with zend framework tek11
 
Appendix A Tables
Appendix A   TablesAppendix A   Tables
Appendix A Tables
 
JKJ_T SQL project code samples
JKJ_T SQL project code samplesJKJ_T SQL project code samples
JKJ_T SQL project code samples
 
Open Source Search: An Analysis
Open Source Search: An AnalysisOpen Source Search: An Analysis
Open Source Search: An Analysis
 
T sql denali code Day of .Net
T sql denali code Day of .NetT sql denali code Day of .Net
T sql denali code Day of .Net
 

More from garnerangelika

Before 1918, approximately 60 of the wolves in the New Mexico a.docx
Before 1918, approximately 60 of the wolves in the New Mexico a.docxBefore 1918, approximately 60 of the wolves in the New Mexico a.docx
Before 1918, approximately 60 of the wolves in the New Mexico a.docx
garnerangelika
 
Bed Bath & Beyond – The Raise and Struggle 1 .docx
Bed Bath & Beyond – The Raise and Struggle      1 .docxBed Bath & Beyond – The Raise and Struggle      1 .docx
Bed Bath & Beyond – The Raise and Struggle 1 .docx
garnerangelika
 
Beethoven; Art and Protest in the 1800s Please respond to the foll.docx
Beethoven; Art and Protest in the 1800s Please respond to the foll.docxBeethoven; Art and Protest in the 1800s Please respond to the foll.docx
Beethoven; Art and Protest in the 1800s Please respond to the foll.docx
garnerangelika
 
Becoming Deviant Please respond to the followingIn your.docx
Becoming Deviant Please respond to the followingIn your.docxBecoming Deviant Please respond to the followingIn your.docx
Becoming Deviant Please respond to the followingIn your.docx
garnerangelika
 
Becoming a ManagerElaine has worked in the IMCU of a communi.docx
Becoming a ManagerElaine has worked in the IMCU of a communi.docxBecoming a ManagerElaine has worked in the IMCU of a communi.docx
Becoming a ManagerElaine has worked in the IMCU of a communi.docx
garnerangelika
 
BECG017 IBS Center for Management Research .docx
BECG017  IBS Center for Management Research  .docxBECG017  IBS Center for Management Research  .docx
BECG017 IBS Center for Management Research .docx
garnerangelika
 
Because this is an interdisciplinary humanities course, so far this .docx
Because this is an interdisciplinary humanities course, so far this .docxBecause this is an interdisciplinary humanities course, so far this .docx
Because this is an interdisciplinary humanities course, so far this .docx
garnerangelika
 
Because of the difficulties that expatriates face, some firms have b.docx
Because of the difficulties that expatriates face, some firms have b.docxBecause of the difficulties that expatriates face, some firms have b.docx
Because of the difficulties that expatriates face, some firms have b.docx
garnerangelika
 
Because Eileen Dover, the CEO of Good For You! Bakery, began her.docx
Because Eileen Dover, the CEO of Good For You! Bakery, began her.docxBecause Eileen Dover, the CEO of Good For You! Bakery, began her.docx
Because Eileen Dover, the CEO of Good For You! Bakery, began her.docx
garnerangelika
 
Be typed, double spaced, using Times New Roman font (size 12), with .docx
Be typed, double spaced, using Times New Roman font (size 12), with .docxBe typed, double spaced, using Times New Roman font (size 12), with .docx
Be typed, double spaced, using Times New Roman font (size 12), with .docx
garnerangelika
 
Beauty, Effort, and Misrepresentation HowBeauty Work Affect.docx
Beauty, Effort, and Misrepresentation HowBeauty Work Affect.docxBeauty, Effort, and Misrepresentation HowBeauty Work Affect.docx
Beauty, Effort, and Misrepresentation HowBeauty Work Affect.docx
garnerangelika
 
Beau Nelson posted Apr 6, 2020 1010 AM1. What positionpositi.docx
Beau Nelson posted Apr 6, 2020 1010 AM1. What positionpositi.docxBeau Nelson posted Apr 6, 2020 1010 AM1. What positionpositi.docx
Beau Nelson posted Apr 6, 2020 1010 AM1. What positionpositi.docx
garnerangelika
 
Beach Vacation WorksheetGLG220 v5Page 2 of 2Beach Vacatio.docx
Beach Vacation WorksheetGLG220 v5Page 2 of 2Beach Vacatio.docxBeach Vacation WorksheetGLG220 v5Page 2 of 2Beach Vacatio.docx
Beach Vacation WorksheetGLG220 v5Page 2 of 2Beach Vacatio.docx
garnerangelika
 
BE6-5 In its first month of operation, Moraine Company purchased 100.docx
BE6-5 In its first month of operation, Moraine Company purchased 100.docxBE6-5 In its first month of operation, Moraine Company purchased 100.docx
BE6-5 In its first month of operation, Moraine Company purchased 100.docx
garnerangelika
 
Bear in mind what you learned about Imagism as you answer one of.docx
Bear in mind what you learned about Imagism as you answer one of.docxBear in mind what you learned about Imagism as you answer one of.docx
Bear in mind what you learned about Imagism as you answer one of.docx
garnerangelika
 
Be the Chair of the Federal Reserve BankGo to the following si.docx
Be the Chair of the Federal Reserve BankGo to the following si.docxBe the Chair of the Federal Reserve BankGo to the following si.docx
Be the Chair of the Federal Reserve BankGo to the following si.docx
garnerangelika
 
Be sure to support with reference to the week’s Learning Resources.docx
Be sure to support with reference to the week’s Learning Resources.docxBe sure to support with reference to the week’s Learning Resources.docx
Be sure to support with reference to the week’s Learning Resources.docx
garnerangelika
 
Be sure to read Making Arguments I before completing this discus.docx
Be sure to read Making Arguments I before completing this discus.docxBe sure to read Making Arguments I before completing this discus.docx
Be sure to read Making Arguments I before completing this discus.docx
garnerangelika
 
Be sure to mark your cale.docx
Be sure to mark your cale.docxBe sure to mark your cale.docx
Be sure to mark your cale.docx
garnerangelika
 
Be sure to include insights on these three perspectives· Wh.docx
Be sure to include insights on these three perspectives· Wh.docxBe sure to include insights on these three perspectives· Wh.docx
Be sure to include insights on these three perspectives· Wh.docx
garnerangelika
 

More from garnerangelika (20)

Before 1918, approximately 60 of the wolves in the New Mexico a.docx
Before 1918, approximately 60 of the wolves in the New Mexico a.docxBefore 1918, approximately 60 of the wolves in the New Mexico a.docx
Before 1918, approximately 60 of the wolves in the New Mexico a.docx
 
Bed Bath & Beyond – The Raise and Struggle 1 .docx
Bed Bath & Beyond – The Raise and Struggle      1 .docxBed Bath & Beyond – The Raise and Struggle      1 .docx
Bed Bath & Beyond – The Raise and Struggle 1 .docx
 
Beethoven; Art and Protest in the 1800s Please respond to the foll.docx
Beethoven; Art and Protest in the 1800s Please respond to the foll.docxBeethoven; Art and Protest in the 1800s Please respond to the foll.docx
Beethoven; Art and Protest in the 1800s Please respond to the foll.docx
 
Becoming Deviant Please respond to the followingIn your.docx
Becoming Deviant Please respond to the followingIn your.docxBecoming Deviant Please respond to the followingIn your.docx
Becoming Deviant Please respond to the followingIn your.docx
 
Becoming a ManagerElaine has worked in the IMCU of a communi.docx
Becoming a ManagerElaine has worked in the IMCU of a communi.docxBecoming a ManagerElaine has worked in the IMCU of a communi.docx
Becoming a ManagerElaine has worked in the IMCU of a communi.docx
 
BECG017 IBS Center for Management Research .docx
BECG017  IBS Center for Management Research  .docxBECG017  IBS Center for Management Research  .docx
BECG017 IBS Center for Management Research .docx
 
Because this is an interdisciplinary humanities course, so far this .docx
Because this is an interdisciplinary humanities course, so far this .docxBecause this is an interdisciplinary humanities course, so far this .docx
Because this is an interdisciplinary humanities course, so far this .docx
 
Because of the difficulties that expatriates face, some firms have b.docx
Because of the difficulties that expatriates face, some firms have b.docxBecause of the difficulties that expatriates face, some firms have b.docx
Because of the difficulties that expatriates face, some firms have b.docx
 
Because Eileen Dover, the CEO of Good For You! Bakery, began her.docx
Because Eileen Dover, the CEO of Good For You! Bakery, began her.docxBecause Eileen Dover, the CEO of Good For You! Bakery, began her.docx
Because Eileen Dover, the CEO of Good For You! Bakery, began her.docx
 
Be typed, double spaced, using Times New Roman font (size 12), with .docx
Be typed, double spaced, using Times New Roman font (size 12), with .docxBe typed, double spaced, using Times New Roman font (size 12), with .docx
Be typed, double spaced, using Times New Roman font (size 12), with .docx
 
Beauty, Effort, and Misrepresentation HowBeauty Work Affect.docx
Beauty, Effort, and Misrepresentation HowBeauty Work Affect.docxBeauty, Effort, and Misrepresentation HowBeauty Work Affect.docx
Beauty, Effort, and Misrepresentation HowBeauty Work Affect.docx
 
Beau Nelson posted Apr 6, 2020 1010 AM1. What positionpositi.docx
Beau Nelson posted Apr 6, 2020 1010 AM1. What positionpositi.docxBeau Nelson posted Apr 6, 2020 1010 AM1. What positionpositi.docx
Beau Nelson posted Apr 6, 2020 1010 AM1. What positionpositi.docx
 
Beach Vacation WorksheetGLG220 v5Page 2 of 2Beach Vacatio.docx
Beach Vacation WorksheetGLG220 v5Page 2 of 2Beach Vacatio.docxBeach Vacation WorksheetGLG220 v5Page 2 of 2Beach Vacatio.docx
Beach Vacation WorksheetGLG220 v5Page 2 of 2Beach Vacatio.docx
 
BE6-5 In its first month of operation, Moraine Company purchased 100.docx
BE6-5 In its first month of operation, Moraine Company purchased 100.docxBE6-5 In its first month of operation, Moraine Company purchased 100.docx
BE6-5 In its first month of operation, Moraine Company purchased 100.docx
 
Bear in mind what you learned about Imagism as you answer one of.docx
Bear in mind what you learned about Imagism as you answer one of.docxBear in mind what you learned about Imagism as you answer one of.docx
Bear in mind what you learned about Imagism as you answer one of.docx
 
Be the Chair of the Federal Reserve BankGo to the following si.docx
Be the Chair of the Federal Reserve BankGo to the following si.docxBe the Chair of the Federal Reserve BankGo to the following si.docx
Be the Chair of the Federal Reserve BankGo to the following si.docx
 
Be sure to support with reference to the week’s Learning Resources.docx
Be sure to support with reference to the week’s Learning Resources.docxBe sure to support with reference to the week’s Learning Resources.docx
Be sure to support with reference to the week’s Learning Resources.docx
 
Be sure to read Making Arguments I before completing this discus.docx
Be sure to read Making Arguments I before completing this discus.docxBe sure to read Making Arguments I before completing this discus.docx
Be sure to read Making Arguments I before completing this discus.docx
 
Be sure to mark your cale.docx
Be sure to mark your cale.docxBe sure to mark your cale.docx
Be sure to mark your cale.docx
 
Be sure to include insights on these three perspectives· Wh.docx
Be sure to include insights on these three perspectives· Wh.docxBe sure to include insights on these three perspectives· Wh.docx
Be sure to include insights on these three perspectives· Wh.docx
 

Recently uploaded

"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
timhan337
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
Mohammed Sikander
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Marketing internship report file for MBA
Marketing internship report file for MBAMarketing internship report file for MBA
Marketing internship report file for MBA
gb193092
 

Recently uploaded (20)

"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Marketing internship report file for MBA
Marketing internship report file for MBAMarketing internship report file for MBA
Marketing internship report file for MBA
 

Use this script for the assignment.Please follow instructions as t.docx

  • 1. Use this script for the assignment. Please follow instructions as to what to turn in. USE MYSQL ONLY. # orderentrydbScript.sql # REV 3 Updated 05/15/2017 Added employee comm pct to employee name Theresa Beck # Script to build the Order Entry Database # Creates tables and inserts data for this assignment # into an already open database. # # Drop database if exists for a clean copy Drop database if exists orderentrydb; # Assumes student has created a database and activated it. # Create Database before you begin to populate data Create Database orderentrydb; Use orderentrydb; # Remove tables if they already exist # Useful if it's not your first time trying this script DROP TABLE if exists ordline ; Drop TABLE if exists OrderTBL ; DROP TABLE if exists Customer ; DROP TABLE if exists Employee ; DROP TABLE if exists Product ; # Create the Product Table CREATE TABLE Product ( ProdNo CHAR(8),
  • 2. ProdName VARCHAR(50) NOT NULL, ProdMfg varchar(20) NOT NULL, ProdQOH decimal(10,2), ProdPrice DECIMAL(12,2), ProdNextShipDate DATE, PRIMARY KEY (ProdNo) ); # Put data into the Product Table INSERT INTO product (ProdNo, ProdName, ProdMfg, ProdQOH, ProdNextShipDate, ProdPrice) VALUES ('P0036566','17 inch Color Monitor','ColorMeg, Inc.',12,'2007-02-20',169.00); INSERT INTO product (ProdNo, ProdName, ProdMfg, ProdQOH, ProdNextShipDate, ProdPrice) VALUES ('P0036577','19 inch Color Monitor','ColorMeg, Inc.',10,'2007-02-20',319.00); INSERT INTO product (ProdNo, ProdName, ProdMfg, ProdQOH, ProdNextShipDate, ProdPrice) VALUES ('P1114590','R3000 Color Laser Printer','Connex',5,'2007-01-22',699.00); INSERT INTO product (ProdNo, ProdName, ProdMfg, ProdQOH, ProdNextShipDate, ProdPrice) VALUES ('P1412138','10 Foot Printer Cable','Ethlite',100,null,12.00); INSERT INTO product (ProdNo, ProdName, ProdMfg, ProdQOH, ProdNextShipDate, ProdPrice)
  • 3. VALUES ('P1445671','8-Outlet Surge Protector','Intersafe',33,null,14.99); INSERT INTO product (ProdNo, ProdName, ProdMfg, ProdQOH, ProdNextShipDate, ProdPrice) VALUES ('P1556678','CVP Ink Jet Color Printer','Connex',8, '2007-01-22',99.00); INSERT INTO product (ProdNo, ProdName, ProdMfg, ProdQOH, ProdNextShipDate, ProdPrice) VALUES ('P3455443','Color Ink Jet Cartridge','Connex',24,'2007-01-22',38.00); INSERT INTO product (ProdNo, ProdName, ProdMfg, ProdQOH, ProdNextShipDate, ProdPrice) VALUES ('P6677900','Black Ink Jet Cartridge','Connex',44,null,25.69); INSERT INTO product (ProdNo, ProdName, ProdMfg, ProdQOH, ProdNextShipDate, ProdPrice) VALUES ('P9995676','Battery Back-up System','Cybercx',12,'2007-02-01',89.00); INSERT INTO product (ProdNo, ProdName, ProdMfg, ProdQOH, ProdNextShipDate, ProdPrice) VALUES ('P4200344','36-Bit Color Scanner','UV Components',16,'2007-01-29',199.99); # Create the Employee Table
  • 4. CREATE TABLE Employee ( EmpNo varCHAR(8), EmpFirstName varchar(20) NOT NULL, EmpLastName varchar(30) NOT NULL, EmpPhone varCHAR(15), EmpEMail VARCHAR(50) NOT NULL, SupEmpNo varCHAR(8) REFERENCES Employee (SupEmpNo), EmpCommRateDECIMAL(3,3), PRIMARY KEY (EmpNo), UNIQUE(EmpEMail)) ; # Put data into the Employee table INSERT INTO employee (EmpNo, EmpFirstName, EmpLastName, EmpPhone, EmpEMail, SupEmpNo, EmpCommRate) VALUES ('E9884325','Thomas','Johnson','(303) 556-9987',' [email protected] ','',0.05); INSERT INTO employee (EmpNo, EmpFirstName, EmpLastName, EmpPhone, EmpEMail, SupEmpNo, EmpCommRate) VALUES ('E8843211','Amy','Tang','(303) 556-4321',' [email protected] ','E9884325',0.04); INSERT INTO employee (EmpNo, EmpFirstName, EmpLastName, EmpPhone, EmpEMail, SupEmpNo, EmpCommRate) VALUES ('E9345771','Colin','White','(303) 221-4453','
  • 5. [email protected] ','E9884325',0.04); INSERT INTO employee (EmpNo, EmpFirstName, EmpLastName, EmpPhone, EmpEMail, SupEmpNo, EmpCommRate) VALUES ('E1329594','Landi','Santos','(303) 789-1234',' [email protected] ','E8843211',0.02); INSERT INTO employee (EmpNo, EmpFirstName, EmpLastName, EmpPhone, EmpEMail, SupEmpNo, EmpCommRate) VALUES ('E8544399','Joe','Jenkins','(303) 221-9875',' [email protected] ','E8843211',0.02); INSERT INTO employee (EmpNo, EmpFirstName, EmpLastName, EmpPhone, EmpEMail, SupEmpNo, EmpCommRate) VALUES ('E9954302','Mary','Hill','(303) 556-9871',' [email protected] ','E8843211',0.02); INSERT INTO employee (EmpNo, EmpFirstName, EmpLastName, EmpPhone, EmpEMail, SupEmpNo) VALUES ('E9973110','Theresa','Beck','(720) 320-2234',' [email protected] ','E9884325');
  • 6. # update employee commission rate for assignment 5.2 - change requested 12/3/2016 Update employee set empcommrate=0.01 where empno='E9973110' and empfirstname='Theresa'; # Create the Customer Table CREATE TABLE Customer ( CustNo varCHAR(8), CustFirstName varchar(20) NOT NULL, CustLastName varchar(30) NOT NULL, CustStreetvarchar(50), CustCityvarchar(30), CustStatevarCHAR(2), CustZipvarCHAR(10), CustBalDECIMAL(12,2), PRIMARY KEY (CustNo) ); # Put data into the Customer table INSERT INTO customer (CustNo, CustFirstName, CustLastName, CustStreet, CustCity, CustState, CustZip, CustBal) VALUES('C0954327','Sheri','Gordon','336 Hill St.','Littleton','CO','80129-5543',230.00); INSERT INTO customer (CustNo, CustFirstName, CustLastName, CustStreet, CustCity, CustState, CustZip, CustBal) VALUES('C1010398','Jim','Glussman','1432 E. Ravenna','Denver','CO','80111-0033',200.00); INSERT INTO customer (CustNo, CustFirstName, CustLastName, CustStreet, CustCity,
  • 7. CustState, CustZip, CustBal) VALUES('C2388597','Beth','Taylor','2396 Rafter Rd','Seattle','WA','98103-1121',500.00); INSERT INTO customer (CustNo, CustFirstName, CustLastName, CustStreet, CustCity, CustState, CustZip, CustBal) VALUES('C3340959','Betty','Wise','4334 153rd NW','Seattle','WA','98178-3311',200.00); INSERT INTO customer (CustNo, CustFirstName, CustLastName, CustStreet, CustCity, CustState, CustZip, CustBal) VALUES('C3499503','Bob','Mann','1190 Lorraine Cir.','Monroe','WA','98013-1095',0.00); INSERT INTO customer (CustNo, CustFirstName, CustLastName, CustStreet, CustCity, CustState, CustZip, CustBal) VALUES('C8543321','Ron','Thompson','789 122nd St.','Renton','WA','98666-1289',85.00); INSERT INTO customer (CustNo, CustFirstName, CustLastName, CustStreet, CustCity, CustState, CustZip, CustBal) VALUES('C8574932','Wally','Jones','411 Webber Ave.','Seattle','WA','98105-1093',1500.00); INSERT INTO customer (CustNo, CustFirstName, CustLastName, CustStreet, CustCity, CustState, CustZip, CustBal) VALUES('C8654390','Candy','Kendall','456 Pine St.','Seattle','WA','98105-3345',50.00); INSERT INTO customer (CustNo, CustFirstName, CustLastName, CustStreet, CustCity,
  • 8. CustState, CustZip, CustBal) VALUES('C9128574','Jerry','Wyatt','16212 123rd Ct.','Denver','CO','80222-0022',100.00); INSERT INTO customer (CustNo, CustFirstName, CustLastName, CustStreet, CustCity, CustState, CustZip, CustBal) VALUES('C9403348','Mike','Boren','642 Crest Ave.','Englewood','CO','80113-5431',0.00); INSERT INTO customer (CustNo, CustFirstName, CustLastName, CustStreet, CustCity, CustState, CustZip, CustBal) VALUES('C9432910','Larry','Styles','9825 S. Crest Lane','Bellevue','WA','98104-2211',250.00); INSERT INTO customer (CustNo, CustFirstName, CustLastName, CustStreet, CustCity, CustState, CustZip, CustBal) VALUES('C9543029','Sharon','Johnson','1223 Meyer Way','Fife','WA','98222-1123',856.00); INSERT INTO customer (CustNo, CustFirstName, CustLastName, CustStreet, CustCity, CustState, CustZip, CustBal) VALUES('C9549302','Todd','Hayes','1400 NW 88th','Lynnwood','WA','98036-2244',0.00); INSERT INTO customer (CustNo, CustFirstName, CustLastName, CustStreet, CustCity, CustState, CustZip, CustBal) VALUES('C9857432','Homer','Wells','123 Main St.','Seattle','WA','98105-4322',500.00); INSERT INTO customer (CustNo, CustFirstName, CustLastName, CustStreet, CustCity,
  • 9. CustState, CustZip, CustBal) VALUES('C9865874','Mary','Hill','206 McCaffrey','Littleton','CO','80129-5543',150.00); INSERT INTO customer (CustNo, CustFirstName, CustLastName, CustStreet, CustCity, CustState, CustZip, CustBal) VALUES('C9943201','Harry','Sanders','1280 S. Hill Rd.','Fife','WA','98222-2258',1000.00); # Create the OrderTbl table CREATE TABLE OrderTbl ( OrdNo varchar(8), OrdDate DATE NOT NULL, CustNo varchar(8) NOT NULL REFERENCES Customer(custNo), EmpNo varchar(8) REFERENCES Employee (EmpNo), OrdName varchar(50), OrdStreet varchar(50), OrdCity varchar(30), OrdState varchar(2), OrdZip varchar(10), PRIMARY KEY (OrdNo) ); # Put data into the OrderTbl table INSERT INTO ordertbl (OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet, OrdCity, OrdState, OrdZip) VALUES ('O1116324','2007-01- 23','C0954327','E8544399','Sheri Gordon','336 Hill St.','Littleton','CO','80129-5543');
  • 10. INSERT INTO ordertbl (OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet, OrdCity, OrdState, OrdZip) VALUES ('O1231231','2007-01- 23','C9432910','E9954302','Larry Styles','9825 S. Crest Lane','Bellevue','WA','98104-2211'); INSERT INTO ordertbl (OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet, OrdCity, OrdState, OrdZip) VALUES ('O1241518','2007-02-10','C9549302','','Todd Hayes','1400 NW 88th','Lynnwood','WA','98036-2244'); INSERT INTO ordertbl (OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet, OrdCity, OrdState, OrdZip) VALUES ('O1455122','2007-01- 09','C8574932','E9345771','Wally Jones','411 Webber Ave.','Seattle','WA','98105-1093'); INSERT INTO ordertbl (OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet, OrdCity, OrdState, OrdZip) VALUES ('O1579999','2007-01-05','C9543029','E8544399','Tom Johnson','1632 Ocean Dr.','Des Moines','WA','98222-1123'); INSERT INTO ordertbl (OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet, OrdCity, OrdState, OrdZip) VALUES ('O1615141','2007-01-
  • 11. 23','C8654390','E8544399','Candy Kendall','456 Pine St.','Seattle','WA','98105-3345'); INSERT INTO ordertbl (OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet, OrdCity, OrdState, OrdZip) VALUES ('O1656777','2007-02-11','C8543321','','Ron Thompson','789 122nd St.','Renton','WA','98666-1289'); INSERT INTO ordertbl (OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet, OrdCity, OrdState, OrdZip) VALUES ('O2233457','2007-01- 12','C2388597','E9884325','Beth Taylor','2396 Rafter Rd','Seattle','WA','98103-1121'); INSERT INTO ordertbl (OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet, OrdCity, OrdState, OrdZip) VALUES ('O2334661','2007-01- 14','C0954327','E1329594','Mrs. Ruth Gordon','233 S. 166th','Seattle','WA','98011'); INSERT INTO ordertbl (OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet, OrdCity, OrdState, OrdZip) VALUES ('O3252629','2007-01- 23','C9403348','E9954302','Mike Boren','642 Crest Ave.','Englewood','CO','80113-5431'); INSERT INTO ordertbl (OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet,
  • 12. OrdCity, OrdState, OrdZip) VALUES ('O3331222','2007-01-15','C1010398','','Jim Glussman','1432 E. Ravenna','Denver','CO','80111-0033'); INSERT INTO ordertbl (OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet, OrdCity, OrdState, OrdZip) VALUES ('O3377543','2007-01- 15','C9128574','E8843211','Jerry Wyatt','16212 123rd Ct.','Denver','CO','80222-0022'); INSERT INTO ordertbl (OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet, OrdCity, OrdState, OrdZip) VALUES ('O4714645','2007-01- 11','C2388597','E1329594','Beth Taylor','2396 Rafter Rd','Seattle','WA','98103-1121'); INSERT INTO ordertbl (OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet, OrdCity, OrdState, OrdZip) VALUES ('O5511365','2007-01- 22','C3340959','E9884325','Betty White','4334 153rd NW','Seattle','WA','98178-3311'); INSERT INTO ordertbl (OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet, OrdCity, OrdState, OrdZip) VALUES ('O6565656','2007-01-20','C9865874','E8843211','Mr. Jack Sibley','166 E. 344th','Renton','WA','98006-5543');
  • 13. INSERT INTO ordertbl (OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet, OrdCity, OrdState, OrdZip) VALUES ('O7847172','2007-01-23','C9943201','','Harry Sanders','1280 S. Hill Rd.','Fife','WA','98222-2258'); INSERT INTO ordertbl (OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet, OrdCity, OrdState, OrdZip) VALUES ('O7959898','2007-02-19','C8543321','E8544399','Ron Thompson','789 122nd St.','Renton','WA','98666-1289'); INSERT INTO ordertbl (OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet, OrdCity, OrdState, OrdZip) VALUES ('O7989497','2007-01-16','C3499503','E9345771','Bob Mann','1190 Lorraine Cir.','Monroe','WA','98013-1095'); INSERT INTO ordertbl (OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet, OrdCity, OrdState, OrdZip) VALUES ('O8979495','2007-01- 23','C9865874','','HelenSibley','206 McCaffrey','Renton','WA','98006-5543'); INSERT INTO ordertbl (OrdNo, OrdDate, CustNo, EmpNo, OrdName, OrdStreet, OrdCity, OrdState, OrdZip) VALUES ('O9919699','2007-02- 11','C9857432','E9954302','Homer Wells','123 Main
  • 14. St.','Seattle','WA','98105-4322'); # Create the OrdLine table CREATE TABLE OrdLine ( OrdNo CHAR(8), ProdNoCHAR(8), QtyINTEGER DEFAULT 1, CONSTRAINT PKOrdLine PRIMARY KEY (OrdNo, ProdNo), CONSTRAINT FKOrdNo FOREIGN KEY (OrdNo) REFERENCES OrderTbl(OrdNo) ON DELETE CASCADE, CONSTRAINT FKProdNo FOREIGN KEY (ProdNo) REFERENCES Product(ProdNo) ); # Put data into the OrdLine table INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O1116324','P1445671',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O1231231','P0036566',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O1231231','P1445671',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O1241518','P0036577',1); INSERT INTO ordline (OrdNo, ProdNo, Qty)
  • 15. VALUES('O1455122','P4200344',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O1579999','P1556678',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O1579999','P6677900',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O1579999','P9995676',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O1615141','P0036566',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O1615141','P1445671',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O1615141','P4200344',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O1656777','P1445671',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O1656777','P1556678',1); INSERT INTO ordline
  • 16. (OrdNo, ProdNo, Qty) VALUES('O2233457','P0036577',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O2233457','P1445671',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O2334661','P0036566',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O2334661','P1412138',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O2334661','P1556678',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O3252629','P4200344',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O3252629','P9995676',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O3331222','P1412138',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O3331222','P1556678',1); INSERT INTO ordline
  • 17. (OrdNo, ProdNo, Qty) VALUES('O3331222','P3455443',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O3377543','P1445671',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O3377543','P9995676',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O4714645','P0036566',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O4714645','P9995676',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O5511365','P1412138',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O5511365','P1445671',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O5511365','P1556678',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O5511365','P3455443',1); INSERT INTO ordline
  • 18. (OrdNo, ProdNo, Qty) VALUES('O5511365','P6677900',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O6565656','P0036566',10); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O7847172','P1556678',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O7847172','P6677900',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O7959898','P1412138',5); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O7959898','P1556678',5); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O7959898','P3455443',5); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O7959898','P6677900',5); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O7989497','P1114590',2); INSERT INTO ordline
  • 19. (OrdNo, ProdNo, Qty) VALUES('O7989497','P1412138',2); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O7989497','P1445671',3); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O8979495','P1114590',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O8979495','P1412138',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O8979495','P1445671',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O9919699','P0036577',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O9919699','P1114590',1); INSERT INTO ordline (OrdNo, ProdNo, Qty) VALUES('O9919699','P4200344',1);