Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Download bookstoreHW.sql ( do not edit this file ) . This is the same database of Exercise 4 , but now in MySQL workbench. Start

Download bookstoreHW.sql (do not edit this file). This is the same database of Exercise 4, but now in MySQL workbench.
Start by importing the database to MySQL Workbench (make sure to follow exactly the instructions on how to import/export databases in MySQL workbench). Then, create the entity-relationship of the database and export it to a pdf. It is important to have the diagram handy when creating the queries.
Now, create a SQL query for each of the questions below. First, run the code on My SQL Workbench, then copy the code to a Word file, and finally, after you have all codes, convert the Word file to a PDF and submit it.
Note: Assign aliases in the queries whenever necessary (please use a short name that briefly describes the information on the corresponding column).
For each order, list the order_numb, order_date, credit_card_numb, the corresponding customer first and last names, and customer phone.
Repeat query 1, but only showing orders that have been filled and that were placed before March 1,2016.
Show all book titles ordered before March 1,2016. Do not list any title more than once.
For each book, show the isbn, author, title, and quantity sold. Sort the books by quantity sold from largest to smallest. The number of books column should have the heading "units_sold".
Find out the total number of orders that have not been shipped.

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

Introductory Relational Database Design For Business With Microsoft Access

Authors: Jonathan Eckstein, Bonnie R. Schultz

1st Edition

1119329418, 978-1119329411

More Books

Students also viewed these Databases questions

Question

Choosing Your Topic Researching the Topic

Answered: 1 week ago

Question

The Power of Public Speaking Clarifying the

Answered: 1 week ago