What possible pairs of values a1 and a2 are returned

Assignment Help Database Management System
Reference no: EM132135875

SQL Transactions Exercises

Consider table Item(name,price) where name is a key, and the following two concurrent transactions.

T1:

Begin Transaction;

Update Item Set price = 2*price Where name = 'pencil';

Insert Into Item Values ('scissors', $100);

Commit;

T2:

Begin Transaction;

select max(Price) as a1 From Item;

select max(Price) as a2 from Item;

Commit;

Assume that the individual statements in each transaction always execute atomically. Suppose initially there are two tuples in Item: (pencil,1000) and (pen,900). Each transaction runs once and commits. Transaction T1 always executes with isolation level Serializable.

(a) If transaction T2 executes with isolation level Serializable, what possible pairs of values a1 and a2 are returned by T2?

(b) If transaction T2 executes with isolation level Repeatable-Read, what possible pairs of values a1 and a2 are returned by T2?

(c) If transaction T2 executes with isolation level Read-Committed, what possible pairs of values a1 and a2 are returned by T2?

(d) If transaction T2 executes with isolation level Read-Uncommitted, what possible pairs of values a1 and a2 are returned by T2?

Reference no: EM132135875

Questions Cloud

Create a sql script that will produce the request : Write a SELECT statement that returns these columns from the Products table.
Properties of the binomial distribution : Doctoral assistant ships of Ph.D students 50% have paid assistant ships. a random sample of n=200 students is chosen
What is the expected number of students : What is the expected number of students who have paid assistant ships in this sample?
Show your own very short and simple application : Show your own very short and simple application that is vulnerable to this attack. Provide another version that mitigates this issue.
What possible pairs of values a1 and a2 are returned : If transaction T2 executes with isolation level Serializable, what possible pairs of values a1 and a2 are returned by T2?
What books are associated with each publisher : How many books are sold each month by the publisher? This is important because quantity discounts are available from the publisher.
Estimate the mean weight of quarters in circulation : You want to you want to estimate the mean weight of quarters in circulation. A sample of 30 quarters has a mean weight of 5.649 grams in a standard deviation
Confidence interval for the proportion : Research research and Sample 5000 household concerning TV shows they watch. Based on the sample 18% reported watching 60 Minutes.
Would you expect the life-span to be normally distributed : Since this in an empirical question that means that 68% is in the middle and on the outer sides are the difference?

Reviews

Write a Review

Database Management System Questions & Answers

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd