Answered step by step
Verified Expert Solution
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 but now in MySQL workbench.
Start by importing the database to MySQL Workbench make sure to follow exactly the instructions on how to importexport databases in MySQL workbench Then, create the entityrelationship 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 ordernumb, orderdate, creditcardnumb, the corresponding customer first and last names, and customer phone.
Repeat query but only showing orders that have been filled and that were placed before March
Show all book titles ordered before March 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 "unitssold".
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
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