Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

How to insert, update, and delete data To test whether a table has been modified correctly as you do these exercises, you can write and run an...

<<You don’t need to show this in your homework, but you should do it.>> Open the script named CreateMyGuitarShop.sql that’s in the Exercise Starts directory. Then, run this script. That should restore the data that’s in the database.
  • Attachment 1
  • Attachment 2
Chapter 7 qattachments_395fdc0aa35d173aabd7152e53e67341b46fa76a.docx Murach’s SQL Server 2012 How to insert, update, and delete dataTo test whether a table has been modified correctly as you do these exercises, you can write and run anappropriate SELECT statement.1 Write an INSERT statement that adds this row to the Categories table:CategoryName: Brass Code the INSERT statement so SQL Server automatically generates the value for the CategoryID column.1. Write an UPDATE statement that modifies the row you just added to the Categories table. This statementshould change the ProductName column to “Woodwinds”, and it should use the CategoryID column toidentify the row.2. Write a DELETE statement that deletes the row you added to the Categories table in exercise 1. Thisstatement should use the CategoryID column to identify the row.3. Write an INSERT statement that adds this row to the Products table:ProductID:CategoryID:ProductCode:ProductName:Description:ListPrice:DiscountPercent:DateAdded: The next automatically generated ID4dgx_640Yamaha DGX 640 88-Key Digital PianoLong description to come.799.990Today’s date/time. Use a column list for this statement.4. Write an UPDATE statement that modifies the product you added in exercise 4. This statement should changethe DiscountPercent column from 0% to 35%.5. Write a DELETE statement that deletes the row in the Categories table that has an ID of 4. When you executethis statement, it will produce an error since the category has related rows in the Products table. To fix that,precede the DELETE statement with another DELETE statement that deletes all products in this category.6. Write an INSERT statement that adds this row to the Customers table:EmailAddress:Password:FirstName:LastName: (empty string)RickRaven Use a column list for this statement.7. Write an UPDATE statement that modifies the Customers table. Change the password column to “secret” forthe customer with an email address of .8. Write an UPDATE statement that modifies the Customers table. Change the password column to “reset” forevery customer in the table.9. &lt;&lt;You don’t need to show this in your homework, but you should do it.&gt;&gt; Open the script namedCreateMyGuitarShop.sql that’s in the Exercise Starts directory. Then, run this script. That should restore thedata that’s in the database.
Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question