Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Database Manipulation Language Statements Designed SQL transactions that meet the organization's needs. Designed SQL transactions that effectively uses INSERT statements. Designed SQL transactions that effectively

Database Manipulation Language Statements

  • Designed SQL transactions that meet the organization's needs.
  • Designed SQL transactions that effectively uses INSERT statements.
  • Designed SQL transactions that effectively uses UPDATE statements.
  • Designed SQL transactions that effectively uses DELETE statements.
  • Demonstrate an ability to use scripts in SQL statements and generate successful results.

Assignment Instructions

For this assignment, complete the following:

  1. There are some situations in which a product requires some changes in terms of price and description. Create an UPDATE statement that will update a specific product's price and description (of your choice). Query the row to validate the changes.
  2. A category has to be removed. DELETE the category and UPDATE all of the products in that category to an existing category.
  3. A "fake" user has made a few orders. DELETE the user account along with all of their orders.
  4. Insert a new product with no category included. Then run an update statement to add it to a category.
  5. There has been a price increase on some items. UPDATE all product prices that are greater than $10 to be $1 more.
  6. The database server had been reset with the wrong date and time without anyone knowing. UPDATE any order date in the past week to add 7 days.
  7. There are too many user accounts that do not have any orders and they should be removed. DELETE all customer records that do not have any orders.
  8. UPDATE the product's description to include on the following string on those products that have not been ordered yet: "Special promotion: 25% off."
  9. While the Web site was down, someone had taken in a manual order. Create the INSERT statements to add a customer and their 3 products that they have purchased.
  10. A customer had called in with their name (no order or customerID), they had purchased the incorrect product. Using an UPDATE statement, update the OrderDetail table using their first and last name (consider it to be unique).

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

3. What should a contract of employment contain?

Answered: 1 week ago

Question

1. What does the term employment relationship mean?

Answered: 1 week ago