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:
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:
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
![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
ConfiTalk
SonTour Desk
ArtBox
SonTour Chair
Recorded Orders:
Last Name
Smith
Price
Wang
Wang
Burton
Employees:
Last Name
Cuban
Gonzalez
Gonzalez
LU
Davis
a)
b)
c)
d)
e)
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
6.
7.
8.
9.
10.
11.
12.
13.
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
Write SQL queries to answer the following questions:
1.
2.
3.
4.
5.
Price
765.78
234.59
23.12
235.99
278.89
16.67
189.89
Y
N
List of customers with the total payment
List of customers with total payment higher than $400
List of customers whose zip code starts with digit 0.
List of customers whose area code is 212 or 213
Y
Y
Y
Quantity
1
Current
List of customers who have placed order(s) without duplicate
2
Revise the initial ER diagram to finalize it (including PK, FK and constraints for each table etc)
Use Workbench to create tables and relationships based on your final ER diagram.
3
1
1
1
First design the database by identifying tables and relationships among the tables and then create an initial R diagram.
Eliminate M:N relationship(s) and normalize each table (if needed).
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
List of customers who live in NJ or NY.
List of names of all employees with his/her manger's first and last name (use null if no manger is assigned).
List of customers who did not place any order.
List of employees who did not process any order.
List of products which were not sold.
List of product(s) and category, sale price and listed price where the product was sold under the listed price.
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
List of customers who made the purchase with product name, category, quantity, sale price of the product and the total for each purchase
List of customers who made purchase(s) in March only.
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](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F19daf46f-68b0-4a9f-8350-e4bad1609c2a%2F142948cb-a704-42ee-9c5d-7eda155634b7%2Fzyo3awa_processed.jpeg&w=3840&q=75)
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
ConfiTalk
SonTour Desk
ArtBox
SonTour Chair
Recorded Orders:
Last Name
Smith
Price
Wang
Wang
Burton
Employees:
Last Name
Cuban
Gonzalez
Gonzalez
LU
Davis
a)
b)
c)
d)
e)
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
6.
7.
8.
9.
10.
11.
12.
13.
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
Write SQL queries to answer the following questions:
1.
2.
3.
4.
5.
Price
765.78
234.59
23.12
235.99
278.89
16.67
189.89
Y
N
List of customers with the total payment
List of customers with total payment higher than $400
List of customers whose zip code starts with digit 0.
List of customers whose area code is 212 or 213
Y
Y
Y
Quantity
1
Current
List of customers who have placed order(s) without duplicate
2
Revise the initial ER diagram to finalize it (including PK, FK and constraints for each table etc)
Use Workbench to create tables and relationships based on your final ER diagram.
3
1
1
1
First design the database by identifying tables and relationships among the tables and then create an initial R diagram.
Eliminate M:N relationship(s) and normalize each table (if needed).
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
List of customers who live in NJ or NY.
List of names of all employees with his/her manger's first and last name (use null if no manger is assigned).
List of customers who did not place any order.
List of employees who did not process any order.
List of products which were not sold.
List of product(s) and category, sale price and listed price where the product was sold under the listed price.
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
List of customers who made the purchase with product name, category, quantity, sale price of the product and the total for each purchase
List of customers who made purchase(s) in March only.
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
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 3 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Recommended textbooks for you
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY