SlideShare a Scribd company logo
Starting from the database used in Project 1 (see the slightly
changed schema from the original version used in P1, defined in
the attached DDL file), a data warehouse star schema with the
following characteristics will be defined:
· Dimension tables:
1. Date
2. Product
3. Customer
· Fact table:
1. Sales
For this final project, perform the following steps:
· Create the tables defined above in a star schema. Add the
necessary columns in each table to facilitate the implementation
of the queries defined below. Only the four tables listed above
are allowed in that star schema
· Write PL/SQL code (anonymous blocks and/or subprograms)
to populate the warehouse schema with data from the
normalized database provided in the attached DDL script
· Write SQL code to perform the following queries:
1. What customer age group spent the most money in the last
year? An age group is defined as a ten years interval, such as:
11 – 20, 21 – 30, etc
2. In what zip codes did the highest number of sales (number of
items) occur during April 2015?
3. What day of the week did they do most business (by value of
sales) in the last year?
4. What quarter is the worst (by value of sales) for each product
category, using the whole set of historical data available in the
warehouse?
5. What was the best sales month for each product in the last
year?
· Write a couple of paragraphs describing:
. How this small data warehouse can help decision making
. How is it different from the original database used as data
source
Submit the PL/SQL blocks and SQL statements as a text file
(Notepad) following the document naming convention
FirstLastFP.txt.
Grading: this project is awarded 100 points
15 points
DDL Script to create the tables in the star schema
25 points
PL/SQL code to populate the star schema from the original
database
5 x 10 points
SQL statements for each of the requested queries
10 points
Description of how this data warehouse helps decision making
and how it differs from regular databases
DROP TABLE ORDER_ITEMS;
DROP TABLE ORDERS;
DROP TABLE CUSTOMERS;
DROP TABLE PRODUCTS;
DROP TABLE CATEGORIES;
CREATE TABLE CATEGORIES (
ID NUMBER PRIMARY KEY,
Name VARCHAR2(20) NOT NULL);
CREATE TABLE PRODUCTS (
ID NUMBER PRIMARY KEY,
CatID NUMBER,
Name VARCHAR2(20) NOT NULL,
Price NUMBER NOT NULL,
FOREIGN KEY (CatID) REFERENCES CATEGORIES(ID));
CREATE TABLE CUSTOMERS (
ID NUMBER PRIMARY KEY,
Name VARCHAR2(50) NOT NULL,
DOB DATE NOT NULL,
Email VARCHAR2(50),
ZipCode CHAR(5) NOT NULL);
CREATE TABLE ORDERS (
ID NUMBER PRIMARY KEY,
CustID NUMBER NOT NULL,
DatePlaced DATE DEFAULT SYSDATE,
FOREIGN KEY (CustID) REFERENCES CUSTOMERS(ID));
CREATE TABLE ORDER_ITEMS (
OrderID NUMBER NOT NULL,
ProdID NUMBER NOT NULL,
Quantity NUMBER DEFAULT 1,
DateShipped DATE,
FOREIGN KEY (OrderID) REFERENCES ORDERS(ID),
FOREIGN KEY (ProdID) REFERENCES PRODUCTS(ID));
INSERT INTO CATEGORIES VALUES (1, 'Books');
INSERT INTO CATEGORIES VALUES (2, 'Electronics');
INSERT INTO CATEGORIES VALUES (3, 'Outdoors');
INSERT INTO PRODUCTS VALUES (1, 1, 'The Lost Years',
15);
INSERT INTO PRODUCTS VALUES (2, 1, 'iPhone
Development', 24);
INSERT INTO PRODUCTS VALUES (3, 1, 'A Raisin in the
Sun', 11);
INSERT INTO PRODUCTS VALUES (4, 1, 'Lone Wolf', 17);
INSERT INTO PRODUCTS VALUES (5, 1, 'Harry Potter', 50);
INSERT INTO PRODUCTS VALUES (6, 2, 'USB Flash Drive',
25);
INSERT INTO PRODUCTS VALUES (7, 2, 'Laptop Mouse',
35);
INSERT INTO PRODUCTS VALUES (8, 2, 'Laser Printer',
250);
INSERT INTO PRODUCTS VALUES (9, 2, 'Speaker System',
65);
INSERT INTO PRODUCTS VALUES (10, 2, 'Broadband
Router', 75);
INSERT INTO PRODUCTS VALUES (11, 3, 'Student
Backpack', 35);
INSERT INTO PRODUCTS VALUES (12, 3, 'Flash Light', 80);
INSERT INTO PRODUCTS VALUES (13, 3, 'Men''s Jacket',
99);
INSERT INTO PRODUCTS VALUES (14, 3, 'Binocular', 60);
INSERT INTO PRODUCTS VALUES (15, 3, 'Swiss Army
Knife', 20);
INSERT INTO CUSTOMERS VALUES (1, 'John M. Newton',
'11-JAN-1980', '[email protected]', 21001);
INSERT INTO CUSTOMERS VALUES (2, 'David S.
Harrington', '21-JUL-1985', '[email protected]', 21002);
INSERT INTO CUSTOMERS VALUES (3, 'Bob R. Hume', '21-
JAN-1990', '[email protected]', 21003);
INSERT INTO CUSTOMERS VALUES (4, 'Jeff A. Newman',
'12-FEB-1975', '[email protected]', 21004);
INSERT INTO CUSTOMERS VALUES (5, 'Bill G. Davidson',
'21-DEC-1989', '[email protected]', 21005);
INSERT INTO CUSTOMERS VALUES (6, 'Joe A. Huntsman',
'10-MAR-1965', '[email protected]', 21006);
INSERT INTO CUSTOMERS VALUES (7, 'Chris W. White',
'22-MAR-1955', '[email protected]', 21007);
INSERT INTO CUSTOMERS VALUES (8, 'Mark A. Black',
'13-JAN-1973', '[email protected]', 21008);
INSERT INTO CUSTOMERS VALUES (9, 'Vlad B. Johnson',
'16-DEC-1997', '[email protected]', 21009);
INSERT INTO CUSTOMERS VALUES (10, 'Matt C. Allen',
'04-OCT-1977', '[email protected]', 21010);
INSERT INTO ORDERS VALUES (1, 1, '25-MAR-2015');
INSERT INTO ORDER_ITEMS VALUES (1, 1, 2, '25-MAR-
2015');
INSERT INTO ORDER_ITEMS VALUES (1, 3, 1, '25-MAR-
2015');
INSERT INTO ORDER_ITEMS VALUES (1, 5, 3, '25-MAR-
2015');
INSERT INTO ORDER_ITEMS VALUES (1, 9, 2, '25-MAR-
2015');
INSERT INTO ORDERS VALUES (2, 2, '26-MAR-2015');
INSERT INTO ORDER_ITEMS VALUES (2, 11, 1, '27-MAR-
2015');
INSERT INTO ORDER_ITEMS VALUES (2, 13, 4, '27-MAR-
2015');
INSERT INTO ORDER_ITEMS VALUES (2, 15, 2, '27-MAR-
2015');
INSERT INTO ORDERS VALUES (3, 3, '27-MAR-2015');
INSERT INTO ORDER_ITEMS VALUES (3, 2, 1, '28-MAR-
2015');
INSERT INTO ORDER_ITEMS VALUES (3, 4, 1, '28-MAR-
2015');
INSERT INTO ORDER_ITEMS VALUES (3, 14, 2, '28-MAR-
2015');
INSERT INTO ORDER_ITEMS VALUES (3, 7, 2, NULL);
INSERT INTO ORDERS VALUES (13, 3, '07-APR-2015');
INSERT INTO ORDER_ITEMS VALUES (13, 12, 1, NULL);
INSERT INTO ORDER_ITEMS VALUES (13, 14, 1, NULL);
INSERT INTO ORDER_ITEMS VALUES (13, 8, 1, NULL);
INSERT INTO ORDERS VALUES (4, 5, '28-MAR-2015');
INSERT INTO ORDER_ITEMS VALUES (4, 5, 2, '29-MAR-
2015');
INSERT INTO ORDER_ITEMS VALUES (4, 8, 2, '29-MAR-
2015');
INSERT INTO ORDER_ITEMS VALUES (4, 6, 1, NULL);
INSERT INTO ORDER_ITEMS VALUES (4, 12, 1, NULL);
INSERT INTO ORDERS VALUES (14, 4, '08-AUG-2014');
INSERT INTO ORDER_ITEMS VALUES (14, 2, 1, '29-AUG-
2014');
INSERT INTO ORDER_ITEMS VALUES (14, 10, 2, '29-AUG-
2014');
INSERT INTO ORDER_ITEMS VALUES (14, 6, 3, NULL);
INSERT INTO ORDER_ITEMS VALUES (14, 9, 2, NULL);
INSERT INTO ORDERS VALUES (5, 6, '18-APR-2015');
INSERT INTO ORDER_ITEMS VALUES (5, 1, 2, NULL);
INSERT INTO ORDER_ITEMS VALUES (5, 3, 1, NULL);
INSERT INTO ORDER_ITEMS VALUES (5, 15, 3, NULL);
INSERT INTO ORDER_ITEMS VALUES (5, 5, 4, NULL);
INSERT INTO ORDERS VALUES (6, 6, '01-APR-2015');
INSERT INTO ORDER_ITEMS VALUES (6, 11, 1, NULL);
INSERT INTO ORDER_ITEMS VALUES (6, 13, 1, NULL);
INSERT INTO ORDER_ITEMS VALUES (6, 5, 2, NULL);
INSERT INTO ORDER_ITEMS VALUES (6, 7, 1, NULL);
INSERT INTO ORDERS VALUES (7, 7, '07-SEP-2014');
INSERT INTO ORDER_ITEMS VALUES (7, 1, 1, NULL);
INSERT INTO ORDER_ITEMS VALUES (7, 2, 2, NULL);
INSERT INTO ORDER_ITEMS VALUES (7, 9, 1, NULL);
INSERT INTO ORDERS VALUES (8, 7, '07-OCT-2014');
INSERT INTO ORDER_ITEMS VALUES (8, 4, 1, NULL);
INSERT INTO ORDER_ITEMS VALUES (8, 8, 1, NULL);
INSERT INTO ORDER_ITEMS VALUES (8, 14, 1, NULL);
INSERT INTO ORDERS VALUES (9, 2, '14-NOV-2014');
INSERT INTO ORDER_ITEMS VALUES (9, 13, 1, NULL);
INSERT INTO ORDER_ITEMS VALUES (9, 3, 2, NULL);
INSERT INTO ORDER_ITEMS VALUES (9, 5, 1, NULL);
INSERT INTO ORDERS VALUES (10, 8, '24-DEC-2014');
INSERT INTO ORDER_ITEMS VALUES (10, 15, 3, NULL);
INSERT INTO ORDER_ITEMS VALUES (10, 1, 2, NULL);
INSERT INTO ORDER_ITEMS VALUES (10, 9, 1, NULL);
INSERT INTO ORDER_ITEMS VALUES (10, 8, 1, NULL);
INSERT INTO ORDER_ITEMS VALUES (10, 11, 1, NULL);
INSERT INTO ORDERS VALUES (11, 8, '04-JAN-2015');
INSERT INTO ORDER_ITEMS VALUES (11, 15, 1, NULL);
INSERT INTO ORDER_ITEMS VALUES (11, 12, 1, NULL);
INSERT INTO ORDER_ITEMS VALUES (11, 5, 1, NULL);
INSERT INTO ORDER_ITEMS VALUES (11, 2, 3, NULL);
INSERT INTO ORDER_ITEMS VALUES (11, 6, 1, NULL);
INSERT INTO ORDERS VALUES (12, 9, '24-DEC-2014');
INSERT INTO ORDER_ITEMS VALUES (12, 1, 1, NULL);
INSERT INTO ORDER_ITEMS VALUES (12, 7, 2, NULL);
INSERT INTO ORDER_ITEMS VALUES (12, 9, 4, NULL);
INSERT INTO ORDER_ITEMS VALUES (12, 12, 3, NULL);
INSERT INTO ORDERS VALUES (15, 10, '05-NOV-2013');
INSERT INTO ORDER_ITEMS VALUES (15, 13, 1, NULL);
INSERT INTO ORDER_ITEMS VALUES (15, 7, 2, NULL);
INSERT INTO ORDER_ITEMS VALUES (15, 8, 1, NULL);
INSERT INTO ORDER_ITEMS VALUES (15, 2, 1, NULL);

More Related Content

PDF
Introduction to sq lite
PPT
Oracle OpenWorld 2010 - Consolidating Microsoft SQL Server Databases into an ...
PDF
Ddd ms dec 2010
DOCX
Use this script for the assignment.Please follow instructions as t.docx
PPTX
J. Adcock Bi Portfolio
PPTX
Cassandra 2.2 & 3.0
PPTX
Do You Have the Time
PDF
SPOOL output.log DROP TABL.pdf
Introduction to sq lite
Oracle OpenWorld 2010 - Consolidating Microsoft SQL Server Databases into an ...
Ddd ms dec 2010
Use this script for the assignment.Please follow instructions as t.docx
J. Adcock Bi Portfolio
Cassandra 2.2 & 3.0
Do You Have the Time
SPOOL output.log DROP TABL.pdf

Similar to Starting from the database used in Project 1 (see the slightly cha.docx (20)

PDF
BD I - Aula 13 B - Agrupando Dados - Parte 04 - Exercicios Enunciado
DOCX
BD I - Aula 13 B - Agrupando dados - Parte 04 - Exercicios Enunciado
DOCX
Organic Gardens SQL Database Schema By Christopher Kaczor
PDF
Oracle SQL Basics
PPT
Kevin Bengtson Portfolio
PPTX
BrownbagIntrotosqltuning.pptx SQL tunning
PPTX
BrownbagIntrotosqltuning.pptx SQL tunning
PPT
BrownbagIntrotosqltuning.ppt
PPT
OracleSQLTuning.ppt
PDF
Date dimension table - part II
DOCX
EJERCICIOS DE BENFORTAN
PDF
Plsql lab mannual
PDF
ADBMS ASSIGNMENT
PDF
Cassandra Community Webinar | The World's Next Top Data Model
PDF
From SQL to Pandas
PDF
Uncovering SQL Server query problems with execution plans - Tony Davis
PPT
SQL structure query language full presentation
PDF
DN 2017 | Reducing pain in data engineering | Martin Loetzsch | Project A
PPT
My Portfolio
PPT
My Portfolio
BD I - Aula 13 B - Agrupando Dados - Parte 04 - Exercicios Enunciado
BD I - Aula 13 B - Agrupando dados - Parte 04 - Exercicios Enunciado
Organic Gardens SQL Database Schema By Christopher Kaczor
Oracle SQL Basics
Kevin Bengtson Portfolio
BrownbagIntrotosqltuning.pptx SQL tunning
BrownbagIntrotosqltuning.pptx SQL tunning
BrownbagIntrotosqltuning.ppt
OracleSQLTuning.ppt
Date dimension table - part II
EJERCICIOS DE BENFORTAN
Plsql lab mannual
ADBMS ASSIGNMENT
Cassandra Community Webinar | The World's Next Top Data Model
From SQL to Pandas
Uncovering SQL Server query problems with execution plans - Tony Davis
SQL structure query language full presentation
DN 2017 | Reducing pain in data engineering | Martin Loetzsch | Project A
My Portfolio
My Portfolio

More from dessiechisomjj4 (20)

DOCX
Project 2 Research Paper Compendium                               .docx
DOCX
Project 1 Interview Essay Conduct a brief interview with an Asian.docx
DOCX
Project 1 Scenario There is a Top Secret intelligence report.docx
DOCX
Project #1 Personal Reflection (10)Consider an opinion that you .docx
DOCX
Project 1 Chinese Dialect Exploration and InterviewYou will nee.docx
DOCX
Project 1 (1-2 pages)What are the employee workplace rights mand.docx
DOCX
PROGRAM 1 Favorite Show!Write an HLA Assembly program that displa.docx
DOCX
Program must have these things Format currency, total pieces & e.docx
DOCX
Professors Comments1) Only the three body paragraphs were require.docx
DOCX
Program EssayPlease answer essay prompt in a separate 1-page file..docx
DOCX
Program Computing Project 4 builds upon CP3 to develop a program to .docx
DOCX
Project 1 Resource Research and ReviewNo directly quoted material.docx
DOCX
Professionalism Assignment I would like for you to put together yo.docx
DOCX
Professor Drebins Executive MBA students were recently discussing t.docx
DOCX
Professional Legal Issues with Medical and Nursing Professionals  .docx
DOCX
Prof Washington, ScenarioHere is another assignment I need help wi.docx
DOCX
Prof James Kelvin onlyIts just this one and simple question 1.docx
DOCX
Product life cycle for album and single . sales vs time ( 2 pa.docx
DOCX
Produce the following components as the final draft of your health p.docx
DOCX
Produce a preparedness proposal the will recommend specific steps th.docx
Project 2 Research Paper Compendium                               .docx
Project 1 Interview Essay Conduct a brief interview with an Asian.docx
Project 1 Scenario There is a Top Secret intelligence report.docx
Project #1 Personal Reflection (10)Consider an opinion that you .docx
Project 1 Chinese Dialect Exploration and InterviewYou will nee.docx
Project 1 (1-2 pages)What are the employee workplace rights mand.docx
PROGRAM 1 Favorite Show!Write an HLA Assembly program that displa.docx
Program must have these things Format currency, total pieces & e.docx
Professors Comments1) Only the three body paragraphs were require.docx
Program EssayPlease answer essay prompt in a separate 1-page file..docx
Program Computing Project 4 builds upon CP3 to develop a program to .docx
Project 1 Resource Research and ReviewNo directly quoted material.docx
Professionalism Assignment I would like for you to put together yo.docx
Professor Drebins Executive MBA students were recently discussing t.docx
Professional Legal Issues with Medical and Nursing Professionals  .docx
Prof Washington, ScenarioHere is another assignment I need help wi.docx
Prof James Kelvin onlyIts just this one and simple question 1.docx
Product life cycle for album and single . sales vs time ( 2 pa.docx
Produce the following components as the final draft of your health p.docx
Produce a preparedness proposal the will recommend specific steps th.docx

Recently uploaded (20)

PDF
Uderstanding digital marketing and marketing stratergie for engaging the digi...
PDF
IGGE1 Understanding the Self1234567891011
PPTX
History, Philosophy and sociology of education (1).pptx
PDF
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PDF
Trump Administration's workforce development strategy
PPTX
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PPTX
Introduction to pro and eukaryotes and differences.pptx
PDF
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
PDF
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
PDF
Weekly quiz Compilation Jan -July 25.pdf
PPTX
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
PDF
Environmental Education MCQ BD2EE - Share Source.pdf
PPTX
TNA_Presentation-1-Final(SAVE)) (1).pptx
PPTX
Unit 4 Computer Architecture Multicore Processor.pptx
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
PPTX
20th Century Theater, Methods, History.pptx
Uderstanding digital marketing and marketing stratergie for engaging the digi...
IGGE1 Understanding the Self1234567891011
History, Philosophy and sociology of education (1).pptx
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
Trump Administration's workforce development strategy
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
202450812 BayCHI UCSC-SV 20250812 v17.pptx
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
Introduction to pro and eukaryotes and differences.pptx
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
Weekly quiz Compilation Jan -July 25.pdf
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
LDMMIA Reiki Yoga Finals Review Spring Summer
Environmental Education MCQ BD2EE - Share Source.pdf
TNA_Presentation-1-Final(SAVE)) (1).pptx
Unit 4 Computer Architecture Multicore Processor.pptx
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
20th Century Theater, Methods, History.pptx

Starting from the database used in Project 1 (see the slightly cha.docx

  • 1. Starting from the database used in Project 1 (see the slightly changed schema from the original version used in P1, defined in the attached DDL file), a data warehouse star schema with the following characteristics will be defined: · Dimension tables: 1. Date 2. Product 3. Customer · Fact table: 1. Sales For this final project, perform the following steps: · Create the tables defined above in a star schema. Add the necessary columns in each table to facilitate the implementation of the queries defined below. Only the four tables listed above are allowed in that star schema · Write PL/SQL code (anonymous blocks and/or subprograms) to populate the warehouse schema with data from the normalized database provided in the attached DDL script · Write SQL code to perform the following queries: 1. What customer age group spent the most money in the last year? An age group is defined as a ten years interval, such as: 11 – 20, 21 – 30, etc 2. In what zip codes did the highest number of sales (number of items) occur during April 2015? 3. What day of the week did they do most business (by value of sales) in the last year? 4. What quarter is the worst (by value of sales) for each product category, using the whole set of historical data available in the warehouse? 5. What was the best sales month for each product in the last year? · Write a couple of paragraphs describing: . How this small data warehouse can help decision making . How is it different from the original database used as data
  • 2. source Submit the PL/SQL blocks and SQL statements as a text file (Notepad) following the document naming convention FirstLastFP.txt. Grading: this project is awarded 100 points 15 points DDL Script to create the tables in the star schema 25 points PL/SQL code to populate the star schema from the original database 5 x 10 points SQL statements for each of the requested queries 10 points Description of how this data warehouse helps decision making and how it differs from regular databases DROP TABLE ORDER_ITEMS; DROP TABLE ORDERS; DROP TABLE CUSTOMERS; DROP TABLE PRODUCTS; DROP TABLE CATEGORIES; CREATE TABLE CATEGORIES ( ID NUMBER PRIMARY KEY, Name VARCHAR2(20) NOT NULL);
  • 3. CREATE TABLE PRODUCTS ( ID NUMBER PRIMARY KEY, CatID NUMBER, Name VARCHAR2(20) NOT NULL, Price NUMBER NOT NULL, FOREIGN KEY (CatID) REFERENCES CATEGORIES(ID)); CREATE TABLE CUSTOMERS ( ID NUMBER PRIMARY KEY, Name VARCHAR2(50) NOT NULL, DOB DATE NOT NULL, Email VARCHAR2(50), ZipCode CHAR(5) NOT NULL); CREATE TABLE ORDERS ( ID NUMBER PRIMARY KEY, CustID NUMBER NOT NULL, DatePlaced DATE DEFAULT SYSDATE,
  • 4. FOREIGN KEY (CustID) REFERENCES CUSTOMERS(ID)); CREATE TABLE ORDER_ITEMS ( OrderID NUMBER NOT NULL, ProdID NUMBER NOT NULL, Quantity NUMBER DEFAULT 1, DateShipped DATE, FOREIGN KEY (OrderID) REFERENCES ORDERS(ID), FOREIGN KEY (ProdID) REFERENCES PRODUCTS(ID)); INSERT INTO CATEGORIES VALUES (1, 'Books'); INSERT INTO CATEGORIES VALUES (2, 'Electronics'); INSERT INTO CATEGORIES VALUES (3, 'Outdoors'); INSERT INTO PRODUCTS VALUES (1, 1, 'The Lost Years', 15); INSERT INTO PRODUCTS VALUES (2, 1, 'iPhone Development', 24); INSERT INTO PRODUCTS VALUES (3, 1, 'A Raisin in the
  • 5. Sun', 11); INSERT INTO PRODUCTS VALUES (4, 1, 'Lone Wolf', 17); INSERT INTO PRODUCTS VALUES (5, 1, 'Harry Potter', 50); INSERT INTO PRODUCTS VALUES (6, 2, 'USB Flash Drive', 25); INSERT INTO PRODUCTS VALUES (7, 2, 'Laptop Mouse', 35); INSERT INTO PRODUCTS VALUES (8, 2, 'Laser Printer', 250); INSERT INTO PRODUCTS VALUES (9, 2, 'Speaker System', 65); INSERT INTO PRODUCTS VALUES (10, 2, 'Broadband Router', 75); INSERT INTO PRODUCTS VALUES (11, 3, 'Student Backpack', 35); INSERT INTO PRODUCTS VALUES (12, 3, 'Flash Light', 80); INSERT INTO PRODUCTS VALUES (13, 3, 'Men''s Jacket', 99); INSERT INTO PRODUCTS VALUES (14, 3, 'Binocular', 60); INSERT INTO PRODUCTS VALUES (15, 3, 'Swiss Army Knife', 20);
  • 6. INSERT INTO CUSTOMERS VALUES (1, 'John M. Newton', '11-JAN-1980', '[email protected]', 21001); INSERT INTO CUSTOMERS VALUES (2, 'David S. Harrington', '21-JUL-1985', '[email protected]', 21002); INSERT INTO CUSTOMERS VALUES (3, 'Bob R. Hume', '21- JAN-1990', '[email protected]', 21003); INSERT INTO CUSTOMERS VALUES (4, 'Jeff A. Newman', '12-FEB-1975', '[email protected]', 21004); INSERT INTO CUSTOMERS VALUES (5, 'Bill G. Davidson', '21-DEC-1989', '[email protected]', 21005); INSERT INTO CUSTOMERS VALUES (6, 'Joe A. Huntsman', '10-MAR-1965', '[email protected]', 21006); INSERT INTO CUSTOMERS VALUES (7, 'Chris W. White', '22-MAR-1955', '[email protected]', 21007); INSERT INTO CUSTOMERS VALUES (8, 'Mark A. Black', '13-JAN-1973', '[email protected]', 21008); INSERT INTO CUSTOMERS VALUES (9, 'Vlad B. Johnson', '16-DEC-1997', '[email protected]', 21009); INSERT INTO CUSTOMERS VALUES (10, 'Matt C. Allen', '04-OCT-1977', '[email protected]', 21010); INSERT INTO ORDERS VALUES (1, 1, '25-MAR-2015'); INSERT INTO ORDER_ITEMS VALUES (1, 1, 2, '25-MAR- 2015');
  • 7. INSERT INTO ORDER_ITEMS VALUES (1, 3, 1, '25-MAR- 2015'); INSERT INTO ORDER_ITEMS VALUES (1, 5, 3, '25-MAR- 2015'); INSERT INTO ORDER_ITEMS VALUES (1, 9, 2, '25-MAR- 2015'); INSERT INTO ORDERS VALUES (2, 2, '26-MAR-2015'); INSERT INTO ORDER_ITEMS VALUES (2, 11, 1, '27-MAR- 2015'); INSERT INTO ORDER_ITEMS VALUES (2, 13, 4, '27-MAR- 2015'); INSERT INTO ORDER_ITEMS VALUES (2, 15, 2, '27-MAR- 2015'); INSERT INTO ORDERS VALUES (3, 3, '27-MAR-2015'); INSERT INTO ORDER_ITEMS VALUES (3, 2, 1, '28-MAR- 2015'); INSERT INTO ORDER_ITEMS VALUES (3, 4, 1, '28-MAR- 2015'); INSERT INTO ORDER_ITEMS VALUES (3, 14, 2, '28-MAR- 2015');
  • 8. INSERT INTO ORDER_ITEMS VALUES (3, 7, 2, NULL); INSERT INTO ORDERS VALUES (13, 3, '07-APR-2015'); INSERT INTO ORDER_ITEMS VALUES (13, 12, 1, NULL); INSERT INTO ORDER_ITEMS VALUES (13, 14, 1, NULL); INSERT INTO ORDER_ITEMS VALUES (13, 8, 1, NULL); INSERT INTO ORDERS VALUES (4, 5, '28-MAR-2015'); INSERT INTO ORDER_ITEMS VALUES (4, 5, 2, '29-MAR- 2015'); INSERT INTO ORDER_ITEMS VALUES (4, 8, 2, '29-MAR- 2015'); INSERT INTO ORDER_ITEMS VALUES (4, 6, 1, NULL); INSERT INTO ORDER_ITEMS VALUES (4, 12, 1, NULL); INSERT INTO ORDERS VALUES (14, 4, '08-AUG-2014'); INSERT INTO ORDER_ITEMS VALUES (14, 2, 1, '29-AUG- 2014');
  • 9. INSERT INTO ORDER_ITEMS VALUES (14, 10, 2, '29-AUG- 2014'); INSERT INTO ORDER_ITEMS VALUES (14, 6, 3, NULL); INSERT INTO ORDER_ITEMS VALUES (14, 9, 2, NULL); INSERT INTO ORDERS VALUES (5, 6, '18-APR-2015'); INSERT INTO ORDER_ITEMS VALUES (5, 1, 2, NULL); INSERT INTO ORDER_ITEMS VALUES (5, 3, 1, NULL); INSERT INTO ORDER_ITEMS VALUES (5, 15, 3, NULL); INSERT INTO ORDER_ITEMS VALUES (5, 5, 4, NULL); INSERT INTO ORDERS VALUES (6, 6, '01-APR-2015'); INSERT INTO ORDER_ITEMS VALUES (6, 11, 1, NULL); INSERT INTO ORDER_ITEMS VALUES (6, 13, 1, NULL); INSERT INTO ORDER_ITEMS VALUES (6, 5, 2, NULL); INSERT INTO ORDER_ITEMS VALUES (6, 7, 1, NULL);
  • 10. INSERT INTO ORDERS VALUES (7, 7, '07-SEP-2014'); INSERT INTO ORDER_ITEMS VALUES (7, 1, 1, NULL); INSERT INTO ORDER_ITEMS VALUES (7, 2, 2, NULL); INSERT INTO ORDER_ITEMS VALUES (7, 9, 1, NULL); INSERT INTO ORDERS VALUES (8, 7, '07-OCT-2014'); INSERT INTO ORDER_ITEMS VALUES (8, 4, 1, NULL); INSERT INTO ORDER_ITEMS VALUES (8, 8, 1, NULL); INSERT INTO ORDER_ITEMS VALUES (8, 14, 1, NULL); INSERT INTO ORDERS VALUES (9, 2, '14-NOV-2014'); INSERT INTO ORDER_ITEMS VALUES (9, 13, 1, NULL); INSERT INTO ORDER_ITEMS VALUES (9, 3, 2, NULL); INSERT INTO ORDER_ITEMS VALUES (9, 5, 1, NULL);
  • 11. INSERT INTO ORDERS VALUES (10, 8, '24-DEC-2014'); INSERT INTO ORDER_ITEMS VALUES (10, 15, 3, NULL); INSERT INTO ORDER_ITEMS VALUES (10, 1, 2, NULL); INSERT INTO ORDER_ITEMS VALUES (10, 9, 1, NULL); INSERT INTO ORDER_ITEMS VALUES (10, 8, 1, NULL); INSERT INTO ORDER_ITEMS VALUES (10, 11, 1, NULL); INSERT INTO ORDERS VALUES (11, 8, '04-JAN-2015'); INSERT INTO ORDER_ITEMS VALUES (11, 15, 1, NULL); INSERT INTO ORDER_ITEMS VALUES (11, 12, 1, NULL); INSERT INTO ORDER_ITEMS VALUES (11, 5, 1, NULL); INSERT INTO ORDER_ITEMS VALUES (11, 2, 3, NULL); INSERT INTO ORDER_ITEMS VALUES (11, 6, 1, NULL);
  • 12. INSERT INTO ORDERS VALUES (12, 9, '24-DEC-2014'); INSERT INTO ORDER_ITEMS VALUES (12, 1, 1, NULL); INSERT INTO ORDER_ITEMS VALUES (12, 7, 2, NULL); INSERT INTO ORDER_ITEMS VALUES (12, 9, 4, NULL); INSERT INTO ORDER_ITEMS VALUES (12, 12, 3, NULL); INSERT INTO ORDERS VALUES (15, 10, '05-NOV-2013'); INSERT INTO ORDER_ITEMS VALUES (15, 13, 1, NULL); INSERT INTO ORDER_ITEMS VALUES (15, 7, 2, NULL); INSERT INTO ORDER_ITEMS VALUES (15, 8, 1, NULL); INSERT INTO ORDER_ITEMS VALUES (15, 2, 1, NULL);