This Data in SQL workbench does not work, can someone help me   -- Create Company Database CREATE DATABASE Company; -- Use above created Database USE Company; -- Create Customer Table CREATE TABLE Customers (     [Last Name] varchar(255),     [First Name] varchar(255),     Address varchar(255),     City varchar(255),  State varchar(100),  ZIP int,  Tel varchar(100) ); -- Insert data into Customers Table INSERT INTO Customers VALUES  ('Smith','Alex','2 South ST','Newark','NJ',07104,'9174251243'),  ('Boden','Paul','21 North St','Bergen','NJ',07047,'9083421987'),  ('Price','Mary','Apt 3, 11th Ave','NY','NY',10074,'2128137658'),  ('Burton','Jane','7 Maple Ave','Tampa','FL',33605,'8132341956'),  ('Wang','Jeff','20 Northern BLVD','LA','CA',90006,'2134314356'); -- Create Products Table CREATE TABLE Products (     [Product Name] varchar(255),     Category varchar(255),     Price float,     Quantity int,  Received date ); -- Insert data into Products Table INSERT INTO Products VALUES  ('3D Printer','Technology',765.78,12,'2020-01-23'),  ('X-Chair','Furniture',234.59,17,'2020-01-20'),  ('Design Box','Supply',23.12,200,'2020-02-12'),  ('ConfiTalk','Technology',235.99,27,'2020-03-01'),  ('ConTour Desk','Furniture',278.89,45,'2020-03-12'),  ('ArtBox','Supply',16.67,123,'2020-03-18'),  ('ConTour Chair','Furniture',189.89,29,'2020-02-15'); -- Create Recorded Orders Table CREATE TABLE [Recorded Orders] (     [Last Name] varchar(255),     [First Name] varchar(255),     Item varchar(255),     Quantity int,  Price float,  [Sale Time] date,  [Sale Rep] varchar(255) ); -- Insert data into Recorded Orders Table INSERT INTO [Recorded Orders] VALUES  ('Smith','Alex','3D Printer',1,765.78,'2022-02-22','Mark'),  ('Smith','Alex','ArtBox',2,16.67,'2022-02-22','Mark'),  ('Price','Mary','Design Box',3,19.99,'2022-03-17','Sandy'),  ('Wang','Jeff','ConTour Chair',1,189.89,'2022-03-25','Sandy'),  ('Wang','Jeff','ConTour Chair',1,278.89,'2022-03-21','Mark'),  ('Burton','Jane','ConTour Chair',1,189.89,'2022-02-27','April'); -- Create Employees Table CREATE TABLE Employees (     [Last Name] varchar(255),     [First Name] varchar(255),     [Hire Date] date,     [Current] varchar(1),  Salary float,  Age int,  Manager varchar(255) ); -- Insert data into Employees Table INSERT INTO Employees VALUES  ('Cuban','Mark','2018-11-20','Y',54555.78,27,'April'),  ('Gonzalez','Roger','2015-02-19','N',45000.56,38,'April'),  ('Gonzalez','Dave','2017-06-30','Y',65332.77,45,''),  ('Lu','April','2017-08-20','Y',58784.34,37,'Dave'),  ('Davis','Sandy','2019-02-12','Y',50020.45,34,'April');

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

This Data in SQL workbench does not work, can someone help me

 

-- Create Company Database

CREATE DATABASE Company;

-- Use above created Database

USE Company;

-- Create Customer Table

CREATE TABLE Customers (

    [Last Name] varchar(255),

    [First Name] varchar(255),

    Address varchar(255),

    City varchar(255),

 State varchar(100),

 ZIP int,

 Tel varchar(100)

);

-- Insert data into Customers Table

INSERT INTO Customers VALUES

 ('Smith','Alex','2 South ST','Newark','NJ',07104,'9174251243'),

 ('Boden','Paul','21 North St','Bergen','NJ',07047,'9083421987'),

 ('Price','Mary','Apt 3, 11th Ave','NY','NY',10074,'2128137658'),

 ('Burton','Jane','7 Maple Ave','Tampa','FL',33605,'8132341956'),

 ('Wang','Jeff','20 Northern BLVD','LA','CA',90006,'2134314356');

-- Create Products Table

CREATE TABLE Products (

    [Product Name] varchar(255),

    Category varchar(255),

    Price float,

    Quantity int,

 Received date

);

-- Insert data into Products Table

INSERT INTO Products VALUES

 ('3D Printer','Technology',765.78,12,'2020-01-23'),

 ('X-Chair','Furniture',234.59,17,'2020-01-20'),

 ('Design Box','Supply',23.12,200,'2020-02-12'),

 ('ConfiTalk','Technology',235.99,27,'2020-03-01'),

 ('ConTour Desk','Furniture',278.89,45,'2020-03-12'),

 ('ArtBox','Supply',16.67,123,'2020-03-18'),

 ('ConTour Chair','Furniture',189.89,29,'2020-02-15');

-- Create Recorded Orders Table

CREATE TABLE [Recorded Orders] (

    [Last Name] varchar(255),

    [First Name] varchar(255),

    Item varchar(255),

    Quantity int,

 Price float,

 [Sale Time] date,

 [Sale Rep] varchar(255)

);

-- Insert data into Recorded Orders Table

INSERT INTO [Recorded Orders] VALUES

 ('Smith','Alex','3D Printer',1,765.78,'2022-02-22','Mark'),

 ('Smith','Alex','ArtBox',2,16.67,'2022-02-22','Mark'),

 ('Price','Mary','Design Box',3,19.99,'2022-03-17','Sandy'),

 ('Wang','Jeff','ConTour Chair',1,189.89,'2022-03-25','Sandy'),

 ('Wang','Jeff','ConTour Chair',1,278.89,'2022-03-21','Mark'),

 ('Burton','Jane','ConTour Chair',1,189.89,'2022-02-27','April');

-- Create Employees Table

CREATE TABLE Employees (

    [Last Name] varchar(255),

    [First Name] varchar(255),

    [Hire Date] date,

    [Current] varchar(1),

 Salary float,

 Age int,

 Manager varchar(255)

);

-- Insert data into Employees Table

INSERT INTO Employees VALUES

 ('Cuban','Mark','2018-11-20','Y',54555.78,27,'April'),

 ('Gonzalez','Roger','2015-02-19','N',45000.56,38,'April'),

 ('Gonzalez','Dave','2017-06-30','Y',65332.77,45,''),

 ('Lu','April','2017-08-20','Y',58784.34,37,'Dave'),

 ('Davis','Sandy','2019-02-12','Y',50020.45,34,'April');



ABC Company is a special online retail company that sells certain products to its customers. Products belong to three categories (technology, office supply and furniture). A customer can order multiple products from these
categories. When a customer places an order, a company sales representative will be assigned to process the order. Customer name, date of order, product(s) and the price(s) must be recorded. The following are the data for a
two-month period that need to be stored in the database:
Customers:
Last Name
Smith
Boden
Price
Burton
Wang
Products:
Product Name
3D Printer
X-Chair
Design Box
SonfiTalk
SonTour Desk
ArtBox
SonTour Chair
Recorded Orders:
Last Name
Smith
Price
Wang
Wang
Burton
Employees:
Last Name
Cuban
Gonzalez
Gonzalez
LU
Davis
First Name
Alex
Paul
Mary
Jane
Jeff
First Name
Alex
Mary
Jeff
Jeff
Jane
First Name
Mark
Roger
Dave
April
Sandy
Address
2 South ST
21 North St
Apt 3, 11th Ave
7 Maple Ave
20 Northern BLVD
Category
Technology
Furniture
Supply
Technology
Furniture
Supply
Furniture
Item
3D Printer
ArtBox
Design Box
ConTour, Chair
SonTour Desk
ConTour Chair
Hire Date
2018-11-20
2015-02-19
2017-06-30
2017-08-20
2019-02-12
Price
765.78
234.59
23.12
235.99
278.89
16.67
189.89
Y
N
Y
Y
Y
1
2
Quantity
3
1
1
1
Current
City
Newark
Bergen
NY
Tampa
LA
State
NJ
NJ
NY
FL
CA
Price
765.78
16.67
19.99
189.89
278.89
189.89
Salary
54555.78
45000.56
65332.77
58784.34
50020.45
Quantity
12
17
200
27
45
123
29
ZIP
07104
07047
10074
33605
90006
Age
27
38
45
37
34
Sale Time
2022-02-22
2022-03-17
2022-03-25
2022-03-21
2022-02-27
Tel
9174251243
9083421987
2128137658
8132341956
2134314356
Received
2020-01-23
2020-01-20
2020-02-12
2020-03-01
2020-03-12
2020-03-18
2020-02-15
Sale Rep
Mark
Sandy
Sandy
Mark
April
Manager
April
April
Dave
April
Transcribed Image Text:ABC Company is a special online retail company that sells certain products to its customers. Products belong to three categories (technology, office supply and furniture). A customer can order multiple products from these categories. When a customer places an order, a company sales representative will be assigned to process the order. Customer name, date of order, product(s) and the price(s) must be recorded. The following are the data for a two-month period that need to be stored in the database: Customers: Last Name Smith Boden Price Burton Wang Products: Product Name 3D Printer X-Chair Design Box SonfiTalk SonTour Desk ArtBox SonTour Chair Recorded Orders: Last Name Smith Price Wang Wang Burton Employees: Last Name Cuban Gonzalez Gonzalez LU Davis First Name Alex Paul Mary Jane Jeff First Name Alex Mary Jeff Jeff Jane First Name Mark Roger Dave April Sandy Address 2 South ST 21 North St Apt 3, 11th Ave 7 Maple Ave 20 Northern BLVD Category Technology Furniture Supply Technology Furniture Supply Furniture Item 3D Printer ArtBox Design Box ConTour, Chair SonTour Desk ConTour Chair Hire Date 2018-11-20 2015-02-19 2017-06-30 2017-08-20 2019-02-12 Price 765.78 234.59 23.12 235.99 278.89 16.67 189.89 Y N Y Y Y 1 2 Quantity 3 1 1 1 Current City Newark Bergen NY Tampa LA State NJ NJ NY FL CA Price 765.78 16.67 19.99 189.89 278.89 189.89 Salary 54555.78 45000.56 65332.77 58784.34 50020.45 Quantity 12 17 200 27 45 123 29 ZIP 07104 07047 10074 33605 90006 Age 27 38 45 37 34 Sale Time 2022-02-22 2022-03-17 2022-03-25 2022-03-21 2022-02-27 Tel 9174251243 9083421987 2128137658 8132341956 2134314356 Received 2020-01-23 2020-01-20 2020-02-12 2020-03-01 2020-03-12 2020-03-18 2020-02-15 Sale Rep Mark Sandy Sandy Mark April Manager April April Dave April
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 4 images

Blurred answer
Knowledge Booster
Fundamentals of Datawarehouse
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education