Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Urgent help please! Consider the following table XboxGames ( id , name, price ) and assume that these values already exist in the database: (

Urgent help please! Consider the following table XboxGames(id, name, price) and assume that these values already exist in the database:
(1,'Bad game', 10),(2,'Ok game', 30),(3, 'good game, 40),(4,'AWESOME game', 100).
We have the following two transactions:
T1: BEGIN TRANSACTION
SELECT AVG (price) AS average price FROM XboxGames ;
COMMIT;
T2: BEGIN TRANSACTION
UPDATE XboxGames SET Price =40 WHERE name = 'good game'
COMMIT;
INSERT INTO XboxGames VALUES (' Terrific Game', 60);
T3: BEGIN TRANSACTION
UPDATE XboxGames SET Price=price*1.20
COMMIT;
The above three transactions are hitting the DBMS roughly at the same time.
What are the possible values for Transaction 1.
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

Step: 3

blur-text-image

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

JDBC Database Programming With J2ee

Authors: Art Taylor

1st Edition

0130453234, 978-0130453235

More Books

Students also viewed these Databases questions