For this assignment, you will develop a series of transactions using Data Manipu
ID: 3837760 • Letter: F
Question
For this assignment, you will develop a series of transactions using Data Manipulation Language in SQL. Using Oracle.
Now that the database has been populated, SmartHomes needs DML statements in order to insert, update, and delete content from their site. Although these statements need to be customized to allow input from the website, Smarthomes wants statements based on the dummy data in the database first to ensure that they work correctly. Some of them may require multiple statements and need to consider the order in which the statements must occur. In preparation for this assignment, you must understand the fundamentals of SQL Data Manipulation Language. You should be familiar with INSERT, UPDATE, and DELETE statements to support the manipulation of the database. Use the suggested resources or other resources you find to learn more about these topics. Assignment Instructions For this assignment, complete the following:
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.
A category has to be removed. DELETE the category and UPDATE all of the products in that category to an existing category.
A "fake" user has made a few orders. DELETE the user account along with all of their orders.
Insert a new product with no category included. Then run an update statement to add it to a category.
There has been a price increase on some items. UPDATE all product prices that are greater than $10 to be $1 more.
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.
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.
UPDATE the product's description to include on the following string on those products that have not been ordered yet: "Special promotion: 25% off."
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.
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).
Write a detailed and accurate analysis of your simple mobile database application, providing appropriate rationale for its design and implementation.
Be sure to provide screenshots of your reports.
Tables (Filtered) CATEGORY CATEGORY ID CATEGORYNAME EI DESCRIPTION CUSTOMER CUSTOMERID EMAIL USERNAME H PASSWORD PHONE EE CITY H FIRSTNAME H STATE LASTNAME ZIP .....EI ADDRESS ......H COUNTRY E-EEE ORDER 1 HORDERID SHIPDATE EE CUSTOMERID EI ORDERDATE ORDER DETAIL ..EH ORDERDETAILID EI ORDERID PRODUCTID E PRICE QUANTITY E-EE PRODUCT E PRODUCTID ......H CATEGORYID PRODUCTNAME PRODUCTDESCRIPTION UNITPRICE H H PICTUREExplanation / Answer
Q. Create an UPDATE statement that will update a specific product's price and description (of your choice).
Q. DELETE the category and UPDATE all of the products in that category to an existing category.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.