Answered step by step
Verified Expert Solution
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 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 customer makes a cash purchase of two units of product QP with a tag price of $ and a discount rate, and one unit of product QTY with a tag price of $ and no discount; the tax rate is percent. The invoice number is The payment ID is
b On Jan customer makes a credit purchase of two units of product HB with a tag price of $ and a discount. The tax rate is percent. The pay term is days. The invoice number is
c On Feb customer returns one of the products QP for a full refund. The refund ID treat it as a negative payment is
d On Feb customer makes the payment toward invoice The payment ID is
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started