1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
ycow [4]
4 years ago
10

For the following two transactions and the initial table values as shown complete the missing blanks in the transaction log belo

w:
Part_ID

Desrption

OnHand

OnOrder

57

Assembled Foo

5

0

987

Foo Fastener

12

7

989

Foo Half

7

0

BEGIN TRANSACTION;

UPDATE Part SET OnHand = OnHand + 7, OnOrder = OnOrder – 7 WHERE Part_ID = 987;

COMMIT;

BEGIN TRANSACTION;

UPDATE Part SET OnHand = OnHand - 4 WHERE Part_ID = 987;

UPDATE Part SET OnHand = OnHand - 2 WHERE Part_ID = 989;

UPDATE Part SET OnHand = OnHand + 1 WHERE Part_ID = 57;

COMMIT

TRL_ID

TRX_ID

PREV_PTR

NEXT_PTR

OPERATION

TABLE

ROW ID

ATTRIBUTE

BEFORE VALUE

AFTER VALUE

1787

109

NULL

START

****

1788

109

1787

UPDATE

PART

987

OnHand

12

1789

109

UPDATE

PART

987

OnOrder

7

1790

109

NULL

COMMIT

****

1791

110

NULL

START

****

Computers and Technology
1 answer:
Ray Of Light [21]4 years ago
7 0

Answer:

Check the explanation

Explanation:

First transaction:

UPDATE Part SET OnHand = OnHand + 7, OnOrder = OnOrder – 7 WHERE Part_ID = 987;

For the part id 987, update OnHand by adding 7 to OnHand and update OnOrder by subtracting 7 from OnOrder.

The current value of OnHand is 12. The current value of OnOrder is 7. After execution of first transaction, the new value of OnHand is 19 and the new value of OnOrder is 0.

Second transaction:

UPDATE Part SET OnHand = OnHand - 4 WHERE Part_ID = 987;

The current value of OnHand for Part_ID = 987is 19. After the update operation, the new value is 15.

UPDATE Part SET OnHand = OnHand - 2 WHERE Part_ID = 989;

The current value of OnHand for Part_ID = 989 is 7. After the update operation, the new value is 5.

UPDATE Part SET OnHand = OnHand + 1 WHERE Part_ID = 57;

The current value of OnHand for Part_ID = 57 is 5. After the update operation, the new value is 6.

The final transaction log after the two transactions can be seen in the attached image below:

You might be interested in
Why do ineed to upgrade to see answers isnt it enough adds
Airida [17]

Answer:

You only get so many ad veiws a day

Explanation:

I think it is 15

7 0
3 years ago
Read 2 more answers
The fill command try’s to fill or generate content for cells based on a ________.
natta225 [31]

Answer: Ctrl + R

Explanation:

Ctrl+ R is the shortcut for filling right, you will first highlight cells.

5 0
3 years ago
What is used to accurately position objects on the slide using a single horizontal and vertical line that intersects in the cent
mars1129 [50]
I think its the ruler c
7 0
3 years ago
Read 2 more answers
Anna’s computer will not power on. What aspect of the computer should Anna check (hardware or software)? How can Anna work to re
Nadya [2.5K]

Answer:

hardware

Explanation:

4 0
4 years ago
Select three nonrenewable types of energy.
trapecia [35]

Answer:

nuclear, coal,petroleum

6 0
3 years ago
Other questions:
  • Edhesive silly questionsj
    8·1 answer
  • An email address is made up of all of the following parts except
    13·2 answers
  • Select the correct answer.
    10·2 answers
  • 50) Universal Containers has an integration that runs nightly to update the Product (Product2) object in Salesforce with updated
    9·1 answer
  • What is the difference between a switch and a hub?
    8·1 answer
  • . Write a C++ Code to get a multiline statement Str1 from a user with a ‘$’ as return character (Hint:
    6·1 answer
  • If you have 60fps on your laptop tell me one way you can go to 240fps
    14·2 answers
  • Do you know the energy unit question?
    10·1 answer
  • Write the following program: Use struct data type to store information about courses. Every course is characterized by the follo
    6·1 answer
  • Which graphic file format would you choose if you needed to make an animated graphic for a website?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!