Question: HELP WILL ALL PLEASE 1 . Write an INSERT statement that adds this row to the Categories table: CategoryName: Brass Code the INSERT statement so
HELP WILL ALL PLEASE 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.
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.
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.
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.
this is the default Todays datetime
Use a column list for this statement.
Write an UPDATE statement that modifies the product you added in exercise This statement should change the DiscountPercent column from to
Write a DELETE statement that deletes the row in the Categories table that has an ID of When you execute this 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.
Write an INSERT statement that adds this row to the Customers table:
EmailAddress: Password: FirstName: LastName:
rick@raven.com empty string Rick
Raven
Use a column list for this statement.
Write an UPDATE statement that modifies the Customers table. Change the password column to secret for the customer with an email address of rick@raven.com.
Murachs SQL Server for Developers: My Guitar Shop exercises
Write an UPDATE statement that modifies the Customers table. Change the
password column to reset for every customer in the table.
Open the script named CreateMyGuitarShop.sql thats in the MGS Exercise Starts directory. Then, run this script. That should restore the data thats in the database. If an error message is displayed indicating that the database is in use, youll need to close and restart the Management Studio and then run the script again.
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
