Assignment 4: SQL for Data Retrieval (Single Table) Assignment 4 is based on the ABC Database's four tables we have created: CUSTOMER, ORDERTBL, PRODUCT and ORDERLINE. 1. List the product (ProdID, Category and price) whose color is black and whose price falls between 200 and 300. 2. List the ID, category and description of the product that has the word 'jet' in its description. 3. List all customers whose name is 'Wally Jones' and lives in the state of Washington (WA).

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter13: Views
Section: Chapter Questions
Problem 3MC
icon
Related questions
Question
Assignment 4: SQL for Data Retrieval (Single Table)
Assignment 4 is based on the ABC Database's four tables we have created: CUSTOMER,
ORDERTBL, PRODUCT and ORDERLINE.
1. List the product (ProdID, Category and price) whose color is black and whose price falls
between 200 and 300.
2. List the ID, category and description of the product that has the word 'jet' in its
description.
3. List all customers whose name is 'Wally Jones' and lives in the state of Washington
(WA).
4. List all customers (last name, first name and zip code) whose zip code is missing
(unknown).
5. List the name and phone number of the customer with area code of '678’.
6. We'd like to markdown by 10% the price of the product whose price is greater than or
equal to 300. List the ID, category, price, and mark-downed price. Rename the mark-
downed price as 'SalePrice'.
7. List all color of the product for category B. Remove any duplicates.
8. List the ID, category and size of the product whose size is 1, 2 or 3.
9. List the ID, category, inventory value of the product whose inventory value is greater
than 10,000. Inventory value can be calculated by multiplying price and quantity on hand.
Name the inventory value as Inventory Value.
10. List the ID and date of any orders that were placed in August, 2016.
Transcribed Image Text:Assignment 4: SQL for Data Retrieval (Single Table) Assignment 4 is based on the ABC Database's four tables we have created: CUSTOMER, ORDERTBL, PRODUCT and ORDERLINE. 1. List the product (ProdID, Category and price) whose color is black and whose price falls between 200 and 300. 2. List the ID, category and description of the product that has the word 'jet' in its description. 3. List all customers whose name is 'Wally Jones' and lives in the state of Washington (WA). 4. List all customers (last name, first name and zip code) whose zip code is missing (unknown). 5. List the name and phone number of the customer with area code of '678’. 6. We'd like to markdown by 10% the price of the product whose price is greater than or equal to 300. List the ID, category, price, and mark-downed price. Rename the mark- downed price as 'SalePrice'. 7. List all color of the product for category B. Remove any duplicates. 8. List the ID, category and size of the product whose size is 1, 2 or 3. 9. List the ID, category, inventory value of the product whose inventory value is greater than 10,000. Inventory value can be calculated by multiplying price and quantity on hand. Name the inventory value as Inventory Value. 10. List the ID and date of any orders that were placed in August, 2016.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Knowledge Booster
SQL Query
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.
Recommended textbooks for you
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr