Customers Customer INT FirstName VARCHARS) LastName VARCHAR Email VARCHAR(100) Address TEXT Orders Order INT Custom INT Ondere DATE TotalAmount DECIMAL(102) Shippinginformation Shipping INT Onder INT ShippingAddress TEXT Reviews Review INT Product INT Customer INT Rating INT Comment TEXT DatePosted DATE Order Details Orderea INT Order NT PINT Quartly INT Subtol DECIMAL(10.2) CategoryName VARCHARGS) Products Product INT ProductName VARCHAR(255) Description TEXT Price DECIMAL(102) Category INT DiscoureD INT Discounts Discour INT Discount Code VARCHAR Discount Percentage DECIMAL) StarDateDATE EndDate DATE

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
Customers
CustomerID INT
◆ FirstName VARCHAR(50)
◆ LastName VARCHAR(50) H
> Email VARCHAR(100)
> Address TEXT
Indexes
F
|
Orders
OrderID INT
> CustomerID INT
> OrderDate DATE
◆ TotalAmount DECIMAL (10,2)
Indexes
#
ShippingInformation
ShippingID INT
> OrderID INT
→ ShippingAddress TEXT
ShippingDate DATE
-K
> EstimatedArrivalDate DATE
→ ShipmentStatus VARCHAR(50)
Indexes
Reviews
ReviewID INT
> ProductID INT
> CustomerID INT
◆ Rating INT
Comment TEXT
> DatePosted DATE
Indexes
OrderDetails
OrderDetailID INT
▶I
> OrderID INT
HI-KO ProductID INT
→ Quantity INT
Subtotal DECIMAL (10,2)
Indexes
T
Categories
CategoryID INT
◆ CategoryName VARCHAR(255)
Indexes
Products
ProductID INT
-H ProductName VARCHAR(255)
> Description TEXT
◆ Price DECIMAL (10,2)
-I+ CategoryID INT
> DiscountID INT
Indexes
Discounts
DiscountID INT
◆ Discount Code VARCHAR(50)
◆ Discount Percentage DECIMAL (5,2)
> StartDate DATE
> EndDate DATE
Indexes
For the design above, Write in SQL a query to print customer names who made good (rating>7) and bad reviews for the same product
they ordered.
Transcribed Image Text:Customers CustomerID INT ◆ FirstName VARCHAR(50) ◆ LastName VARCHAR(50) H > Email VARCHAR(100) > Address TEXT Indexes F | Orders OrderID INT > CustomerID INT > OrderDate DATE ◆ TotalAmount DECIMAL (10,2) Indexes # ShippingInformation ShippingID INT > OrderID INT → ShippingAddress TEXT ShippingDate DATE -K > EstimatedArrivalDate DATE → ShipmentStatus VARCHAR(50) Indexes Reviews ReviewID INT > ProductID INT > CustomerID INT ◆ Rating INT Comment TEXT > DatePosted DATE Indexes OrderDetails OrderDetailID INT ▶I > OrderID INT HI-KO ProductID INT → Quantity INT Subtotal DECIMAL (10,2) Indexes T Categories CategoryID INT ◆ CategoryName VARCHAR(255) Indexes Products ProductID INT -H ProductName VARCHAR(255) > Description TEXT ◆ Price DECIMAL (10,2) -I+ CategoryID INT > DiscountID INT Indexes Discounts DiscountID INT ◆ Discount Code VARCHAR(50) ◆ Discount Percentage DECIMAL (5,2) > StartDate DATE > EndDate DATE Indexes For the design above, Write in SQL a query to print customer names who made good (rating>7) and bad reviews for the same product they ordered.
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
JQuery and Javascript
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