Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Week 7 Transaction Management Assignment Based on the above ERD Diagram of ABC Market database, write the SQL code to represent each one of the

Week 7 Transaction Management Assignment
Based on the above ERD Diagram of ABC Market database, write the SQL code to represent each one of the following transactions. Use BEGIN TRANSACTION and COMMIT to group the SQL statements in logical transactions. Please submit screenshots of your scripts and the output of each table that has been updated.
a. On Jan 22,2024, customer 10015 makes a cash purchase of two units of product 13-Q2/P2 with a tag price of $100.00 and a 5% discount rate, and one unit of product 2232/QTY with a tag price of $50.00 and no discount; the tax rate is 8 percent. The invoice number is 12434. The payment ID is 6595.
b. On Jan 23,2024, customer 10012 makes a credit purchase of two units of product 23109-HB with a tag price of $20 and a 10% discount. The tax rate is 8 percent. The pay term is 30 days. The invoice number is 12456.
c. On Feb 3,2024, customer 10015 returns one of the products 13-Q2/P2 for a full refund. The refund ID (treat it as a negative payment) is 6890.
d. On Feb 22,2024, customer 10012 makes the payment toward invoice 12456. The payment ID is 6780.
image text in transcribed

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_2

Step: 3

blur-text-image_3

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

Object Databases The Essentials

Authors: Mary E. S. Loomis

1st Edition

020156341X, 978-0201563412

Students also viewed these Databases questions

Question

6. What is process reengineering? Why is it relevant to training?

Answered: 1 week ago