Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using the My Guitar Shop database you installed in Module 1 , develop the following queries. To test whether a table has been modified correctly
Using the My Guitar Shop database you installed in Module develop the following queries.
To test whether a table has been modified correctly as you do these exercises, you can write and run an appropriate SELECT statement.
Write an INSERT statement that adds this row to the Categories table:
categoryname: Brass
Code the INSERT statement so MySQL automatically generates the categoryid column. Execute the query and take a screenshot of the query and the results.
Write an UPDATE statement that modifies the row you just added to the Categories table. This statement should change the categoryname column to Woodwinds and it should use the categoryid column to identify the row. Execute the query and take a screenshot of the query and the results.
Write a DELETE statement that deletes the row you added to the Categories table in exercise This statement should use the categoryid column to identify the row. Execute the query and take a screenshot of the query and the results.
Write an INSERT statement that adds this row to the Products table:
productid:
categoryid:
productcode:
productname:
description:
listprice:
discountpercent:
dateadded:
The next automatically generated ID
dgx
Yamaha DGX Key Digital Piano
Long description to come.
Todays datetime
Use a column list for this statement. Execute the query and take a screenshot of the query and the results
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