Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Ellen Novotny started an online bookstore in 2017. You are Ellen's best friend and promised to help her. Ellen asked you to create a
Ellen Novotny started an online bookstore in 2017. You are Ellen's best friend and promised to help her. Ellen asked you to create a small database to track the information on books and authors. You created the following tables: Author. Book, and Author Book. The table Author_Book is a relationship table to link the Author table and Book table because of the many-to- many relationship between the two tables. That is, each author may write many books and each book may have multiple authors. In general, each customer can purchase many books in a single transaction. Also, copies of the same book can be sold to different customers. Once an order is processed, the books are shipped right away. Based on these tables you have (see below), help Ellen to extract the information she needs from the database. Author Author ID Last Name First Name Email Phone number AU-1 Adams Eric Eric 168@yahoo.com (714) 833-2419 AU-2 Brown Jennifer jenifferb@gmail.com (619) 596-0012 AU-3 Davis Keith keithd@gmail.com (212) 342-5680 AU-4 Newport Kevin kevinn@hotmail.com (301) 947-7741 AU-5 Pham John AU-6 Sviokla Julia jsviokla@yahoo.com johnpham@gmail.com (617) 645-3647 (805) 498-1688 Book Book ID Title Area Year Edition Publisher B-1 Accounting Principles Financial Accounting 2016 8 Wiley B-2 Cost Management Management Accounting 2017 31 McGraw-Hill B-3 Accounting Information Systems Information Systen 2017 2 McGraw-Hill B-4 Individual Taxation 2017 Taxation 2018 6 Pearson B-5 Intermediate Accounting Financial Accounting 2016 1 Wiley B-6 Advanced Accounting Financial Accounting 2017 1 McGraw-Hill Author ID Book ID AU-1. B-2 AU-1 B-5 AU-2 B-6 AU-3 B-2 AU-3 B-3 AU-4 B-2 AU-5 B-4 AU-6 B-1 AU-6 B-6 Customer Customer ID Last Name First Name Email C-1 Black Emily Ewb2003@yahoo.com C-2 Brown Jack jackjack@gmail.com C-3 Easton Anderson anderson.easton@gmail.com C-4 Jennix May jennixm@hotmail.com C-5 Venable Judy Judy. Venable@gmail.com C-6 White Ashley Ashley 2015@yahoo.com C-7 Williams Eric Williams_e@yahoo.com Sales_Line_Item Sales Date Customer ID Book ID Quantity Unit price 9/1/2020 9/1/2020 C-7 B-3 1 $205 C-7 B-1 I $221 9/1/2020 C-1 B-6 30 $195 9/2/2020 C-5 B-2 60 $199 9/2/2020 C-5 B-5 25 25 $210 9/2/2020 C-3 B-2 1 $245 9/2/2020 C-3 B-6 1 $215 9/2/2020 C-3 B-4 $160 9/3/2020 C-2 B-1 1 $221 13 (3) You are going to send emails to inform the customers that the books ordered have been shipped. Use Query Design or write a SQL statement to obtain the complete information on the book title(s), unit price(s), and the number of each book purchased to be sent to the customers. Name the query as "Requirement 3". (4) Ellen wants to know how many copies on each book were sold. Use Query Design or write a SQL statement to obtain the necessary information you think Ellen wants. Name the query as "Requirement 4".
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started