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
A group of students want to create an educational online game for computer laboratory in their school which type of network will
Natali [406]

Answer:

A.LAN

Explanation:

LAN (Local area Network) is a type of data communication network which covers a small geographical area such as a school compound. This network can accommodate variety of electronic devices including computers, laptops, file servers, printers and modems. In this example, a room can be identified for the project to consist of more than 20 computers sharing a file server and a single hard drive.

Best wishes!

6 0
3 years ago
Which goal of design theory can be described as the proper distribution
muminat
The answer is balance
7 0
3 years ago
A palindrome is a string that reads the same both forward and backward. For example, the string madam is a palindrome. Write a p
miskamm [114]

Answer:

Explanation: Hey bro! Sorry to bother. But have any of your questions got deleted after posting them? I don't know why my question got deleted by a guy.

8 0
3 years ago
Match each operating system drawback to its respective operating system.
Lena [83]

Answer:

Microsoft Windows - More susceptible to viruses

Linux - Limited support system

Apple - Fewer compatible applications

Explanation:

Generally windows is more susceptible to viruses.

Linux is open source meaning it's up to the community to help you.

Apple has been supporting more applications in these coming years but it still lacks the wide range of apps windows supports.

4 0
3 years ago
Read 2 more answers
Mary uploaded some images on her website. She chose an image and downloaded it. She found that the image she saw on screen did n
kondor19780726 [428]
It could be A or B, with a guess that it’s A. Many websites require images to be compressed on uploading so that it takes less of the site’s database storage, but the wording leads me to believe it may be B. Any thoughts?
4 0
3 years ago
Other questions:
  • One of the earlier applications of crypto-graphic hash functions was the storage of passwords to authenticate usersin computer s
    13·1 answer
  • In a PowerPoint presentation, it is not possible to add notes that are hidden from the audience's view.
    9·1 answer
  • Use the drop-down menus to complete statements about managing meeting responses.
    13·1 answer
  • 1. The acronym AUDIENCE serves to remind you of what to consider when analyzing an audience. The U for understanding. How does t
    15·1 answer
  • You have three users who travel to four branch offices often and need to log on to the RODCs at these offices. The branch office
    12·1 answer
  • Which of the following modes of replication requires a very low latency network connection and ensures data remains in synch wit
    13·1 answer
  • How can we compare a computer with human beings?
    14·1 answer
  • If your computer has a ________, someone else can gain access to it undetected.
    10·1 answer
  • You have deployed a web application targeting a global audience across multiple Oracle Cloud Infrastructure (OCI) regions.
    10·1 answer
  • Why is it important to think about the programming language to use?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!