Question: Please write the SQL statements needed to answer the following questions. Submit your statements as a Word or PDF file to the Blackboard course website
Please write the SQL statements needed to answer the following questions. Submit your statements as a Word or PDF file to the Blackboard course website by the due date.
Please use the following information and model to help you answer questions For these questions, you will create a new database, titled recipes, on your MySQL instance installed on your computer.
Using the model above, write SQL statements to create the following entities as tables in the recipes database. Include the required referential integrity constraints. Set all FK to the NOT NULL property. Also, set each of the PKs except the composite PK to autoincrement.
Alter the recipe table to include another field, titled recipeauthor, with a varchar data type.
Once you have completed questions and drop each of your tables from the recipes database using SQL statements Did you run into any issues dropping the tables? If so what?
Please use the following information to help you answer question For question you will use the
sqlpractice database.
For your work, you need the monthly order totals for each customer ie how much was spent each month by each customer returned in a list. To make using the returned results in other queries easier, you have decided to use a View to create a virtual table of the results. Using a single SQL statement, create a View in the sqlpractice database that displays this data when the View is called. Title the View monthlycustomerordertotals. Hint: Make sure the SELECT statement works before creating the View. Also, think about what groups you will be creating.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
