Joins 1. Which books were written by an author with the last name Adams? Perform the search using the author name. 2. What gift will a customer who orders the book Shortest Poems receive? Use the actual book retail value to determine the gift. Using Single Row Functions (INSTR, LENGTH, SUBSTR etc)- 3.Determine the length of data stored in the ISBN field of the BOOKS table. Make sure eache different length value is displayed only once (not once for each book). Group By / Subquerye 4. Determine how many orders have been placed by each customer. Do not include in thee results any customer who hasn't recently placed an order with Justlee Books. 5. Determine the average retail price of books by publisher name and category. Include only the categories Children and Computer and the groups with an average retail price greater than $50. 6. List the customers living in Georgia or Florida who have recently placed an order totaling more than $80. Data Manupulation Language (DML)- 7.a) Add a new row in the ORDERS table with the following data: Order# = 1021, Customer# 1009, and Order date = today's date. b. Modify the zip code on order 1017 to 33222. c. Save the changes permanently to the database. Apply commit d. Add a new row in the ORDERS table with the following data: Order# = 1022, Customer# =2000, and Order date = today's date. Describe the error raised and what caused the error.

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...
icon
Related questions
Question
100%

please use SQL to answer the following question an erd had been provide as well

To perform below tasks, refer to tables in the JustLee Book database
Joins -
1. Which books were written by an author with the last name Adams? Perform the search using
the author name.e
2. What gift will a customer who orders the book Shortest Poems receive? Use the actual book
retail value to determine the gift.-
Using Single Row Functions (INSTR, LENGTH , SUBSTR etc)-
3.Determine the length of data stored in the ISBN field of the BOOKS table. Make sure eache
different length value is displayed only once (not once for each book)."
Group By / Subquerye
4. Determine how many orders have been placed by each customer. Do not include in thee
results any customer who hasn't recently placed an order with Justlee Books.
5. Determine the average retail price of books by publisher name and category. Include only
the categories Children and Computer and the groups with an average retail price greater
than $50.4
6. List the customers living in Georgia or Florida who have recently placed an order totalinge
more than $80.
Data Manupulation Language (DML)-
7.a) Add a new row in the ORDERS table with the following data: Order# = 1021, Customer#
1009, and Order date = today's date.
b. Modify the zip code on order 1017 to 33222.4
c. Save the changes permanently to the database. Apply commit
d. Add a new row in the ORDERS table with the following data: Order# = 1022, Customer#
=2000, and Order date = today's date. Describe the error raised and what caused the error.
%3D
%3D
Transcribed Image Text:To perform below tasks, refer to tables in the JustLee Book database Joins - 1. Which books were written by an author with the last name Adams? Perform the search using the author name.e 2. What gift will a customer who orders the book Shortest Poems receive? Use the actual book retail value to determine the gift.- Using Single Row Functions (INSTR, LENGTH , SUBSTR etc)- 3.Determine the length of data stored in the ISBN field of the BOOKS table. Make sure eache different length value is displayed only once (not once for each book)." Group By / Subquerye 4. Determine how many orders have been placed by each customer. Do not include in thee results any customer who hasn't recently placed an order with Justlee Books. 5. Determine the average retail price of books by publisher name and category. Include only the categories Children and Computer and the groups with an average retail price greater than $50.4 6. List the customers living in Georgia or Florida who have recently placed an order totalinge more than $80. Data Manupulation Language (DML)- 7.a) Add a new row in the ORDERS table with the following data: Order# = 1021, Customer# 1009, and Order date = today's date. b. Modify the zip code on order 1017 to 33222.4 c. Save the changes permanently to the database. Apply commit d. Add a new row in the ORDERS table with the following data: Order# = 1022, Customer# =2000, and Order date = today's date. Describe the error raised and what caused the error. %3D %3D
ORDERS
Order#
Customer#
Orderdate
Shipdate
Shipstreet
Shipcity
Shipstate
Shipzip
Shipcost
CUSTOMERS
Customer#
Lastname
Firstname
Email
Address
City
State
Zip
Referred
Region
BOOKAUTHOR AUTHOR
ВОOKS
AuthorD
ISBN
ISBN
AuthorID
Lname
Fname
ORDERITEMS
Title
Pubdate
PubID
Cost
Retall
Discount
Category
Order#
Item#
ISBN
Quantity
Paideach
PUBLISHER
PubID
Name
PROMOTION Contact
Gift
Minretail
Maxretall
Phone
FIGURE 1-5
JustLee Books's table structures after normalization
Transcribed Image Text:ORDERS Order# Customer# Orderdate Shipdate Shipstreet Shipcity Shipstate Shipzip Shipcost CUSTOMERS Customer# Lastname Firstname Email Address City State Zip Referred Region BOOKAUTHOR AUTHOR ВОOKS AuthorD ISBN ISBN AuthorID Lname Fname ORDERITEMS Title Pubdate PubID Cost Retall Discount Category Order# Item# ISBN Quantity Paideach PUBLISHER PubID Name PROMOTION Contact Gift Minretail Maxretall Phone FIGURE 1-5 JustLee Books's table structures after normalization
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 8 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
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 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)
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
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY