Question: This is a database management systems course problem. 1 . Consider the following SQL code for updating a database: On May 1 1 , 2
This is a database management systems course problem.
Consider the following SQL code for updating a database:
On May customer makes a credit purchase days of one unit of product QER with a unit price of $; the tax rate is percent. The invoice number is and this invoice has only one product line.
BEGIN TRANSACTION
INSERT INTO INVOICE
i VALUES MayOPEN;
INSERT INTO LINE
i VALUES QER;
UPDATE PRODUCT
i SET PQTYOH PQTYOH
ii WHERE PCODE QER;
UPDATE CUSTOMER
SET CUSDATELSTPUR May CUSBALANCE CUSBALANCE
WHERE CUSCODE ;
COMMIT;
The following is the transaction log that is created:
TRL
ID
TRX
NUM
PREV
PTR
NEXT
PTR
OPERATION
TABLE
ROW ID
ATTRIBUTE
BEFORE
VALUE
AFTER
VALUE
Null
START
Start Trx
INSERT
INVOICE
May OPEN
INSERT
LINE
QER
UPDATE
PRODUCT
A
PQTYOH
UPDATE
CUSTOMER
CUSBALANCE
B
UPDATE
CUSTOMER
C
D
E
Null
COMMIT
End Trx
Null
START
Start Trx
Fill in the missing values: A B C D E
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
