Using the Orders database attached write the SQL Statements for the below cases: Get all the orders placed by a specific customer. CustomerID for this customer is MAGAA. My answer here is; select * from tblOrders where CustomerID = 'MAGAA'; Show customers whose ContactTitle is not Sales Associate. Display CustomerID, CompanyName, Contact Name, and ContactTitle Show customers who bought products where the EnglishName includes the string “chocolate”. Display CustomerID, CompanyName, ProductID, ProductName, and EnglishName Show products which were bought by customers from Italy or USA. ”. Display CustomerID, CompanyName, ShipCountry, ProductID, ProductName, and EnglishName Show total price of each product in each order. Note that there is not a column named as total price. You should calculate it and create a column named as TotalPrice. Display OrderID, ProductID, ProductName, UnitPrice, Quantity, Discount, and TotalPrice Show how many products there are in each category and show the results in ascending order by the total number of products. Display CategoryName, and TotalProducts Show the total number of customers in each City. Display Country, City, TotalCustomers Show the orders which were shipped late than the actual required date. Display OrderID, OrderDate, RequiredDate, and ShippedDate
Using the Orders database attached write the SQL Statements for the below cases: Get all the orders placed by a specific customer. CustomerID for this customer is MAGAA. My answer here is; select * from tblOrders where CustomerID = 'MAGAA'; Show customers whose ContactTitle is not Sales Associate. Display CustomerID, CompanyName, Contact Name, and ContactTitle Show customers who bought products where the EnglishName includes the string “chocolate”. Display CustomerID, CompanyName, ProductID, ProductName, and EnglishName Show products which were bought by customers from Italy or USA. ”. Display CustomerID, CompanyName, ShipCountry, ProductID, ProductName, and EnglishName Show total price of each product in each order. Note that there is not a column named as total price. You should calculate it and create a column named as TotalPrice. Display OrderID, ProductID, ProductName, UnitPrice, Quantity, Discount, and TotalPrice Show how many products there are in each category and show the results in ascending order by the total number of products. Display CategoryName, and TotalProducts Show the total number of customers in each City. Display Country, City, TotalCustomers Show the orders which were shipped late than the actual required date. Display OrderID, OrderDate, RequiredDate, and ShippedDate
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
Using the Orders
- Get all the orders placed by a specific customer. CustomerID for this customer is MAGAA. My answer here is; select * from tblOrders where CustomerID = 'MAGAA';
- Show customers whose ContactTitle is not Sales Associate. Display CustomerID, CompanyName, Contact Name, and ContactTitle
- Show customers who bought products where the EnglishName includes the string “chocolate”. Display CustomerID, CompanyName, ProductID, ProductName, and EnglishName
- Show products which were bought by customers from Italy or USA. ”. Display CustomerID, CompanyName, ShipCountry, ProductID, ProductName, and EnglishName
- Show total price of each product in each order. Note that there is not a column named as total price. You should calculate it and create a column named as TotalPrice. Display OrderID, ProductID, ProductName, UnitPrice, Quantity, Discount, and TotalPrice
- Show how many products there are in each category and show the results in ascending order by the total number of products. Display CategoryName, and TotalProducts
- Show the total number of customers in each City. Display Country, City, TotalCustomers
- Show the orders which were shipped late than the actual required date. Display OrderID, OrderDate, RequiredDate, and ShippedDate

Transcribed Image Text:tblShippers
V ShpperID
tblProducts *
* ProductiD
CompanyName
SupplierID
tblOrderDetails
V OrderID
V ProductID
CategoryID
Productiame
EnglishName
UnitPrice
QuantityPerUnit
tblCustomers *
tblOrders *
Quantity
UnitPrice
V Customer ID
* OrderID
Discount
UnitsinStock
CompanyName
CustomerID
Unitsonorder
ContactName
EmployeelD
Reorderlevel
ContactTitle
ShipName
Discontinued
Address
ShipAddress
tblSupplier *
V SupplerD
City
ShipCity
ShipRegion
ShipPostalCode
Region
Name
PostalCode
Address
Country
ShipCountry
City
Phone
ShipVia
Province
Fax
Orderbate
RequredDate
ShippedDate
Freight
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images

Recommended textbooks for you

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…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

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…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

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)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education

Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY