Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Background for Problems 10 through 14 Ellen Novotny started an online bookstore in 2020. You are Ellen's best friend and promised to help her. Ellen

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Background for Problems 10 through 14 Ellen Novotny started an online bookstore in 2020. 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 Book \begin{tabular}{|l|l|l|l|l|l|} \hline Book ID & Title & Area & Year & Edition & Publis \\ \hline B-1 & Accounting Principles & Financial Accounting & 2016 & 8 & Wiley \\ \hline B-2 & Cost Management & Management Accounting & 2017 & 3 & McGr \\ \hline B-3 & Accounting Information Systems & Information Systems & 2017 & 2 & McGr \\ \hline B-4 & Individual Taxation 2017 & Taxation & 2018 & 6 & Pearso \\ \hline B-5 & Intermediate Accounting & Financial Accounting & 2016 & 1+ & Wiley \\ \hline B-6 & Advanced Accounting & Financial Accounting & 2017 & 1 & McGr \\ \hline \end{tabular} Author_Book Customer Sales_Line_Item 10. Ellen asks you to give her a list of the books that each author wrote. Write a complete SQL statement to provide the information to Ellen, including author names, book titles, publishers, and the years of publication. LO-2, LO 4-3 11. Ellen wants to know how many books each author wrote. Write a SQL statement to provide such information to Ellen. LO 4-2, LO-3 12. You are going to send emails to inform the customers that the books ordered have been shipped. Write a SQL statement to obtain the complete infrmation on the book title(s), unit price(s), and the number of each book purchased to be sent to the customers. LO 4-2, L 4-3 13. Ellen wants to know how many copies of each book were sold. Write a SQL statement to obtain the necessary information you think Ellen wants. LO 4-2, LO43 14. Ellen wants to know the dollar amount of total sales made on September 1, 2017. Write a SQL statement to obtain the necessary information you think Ellen wants

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Survey of Accounting

Authors: Thomas Edmonds, Christopher, Philip Olds, Frances McNair, Bor

4th edition

77862376, 978-0077862374

More Books

Students also viewed these Accounting questions

Question

Develop a program for effectively managing diversity. page 317

Answered: 1 week ago