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

  You were tasked to create an oracle database for a company

you were tasked to create an oracle database for a company to track their employees and projects. after speaking with

  How to use spool command

How to interactively query a database by using SQL statements and SQL*PLUS commands and how to use spool command to save an interactive session within SQL*PLUS.

  What measures would you put in place

What measures would you put in place to make sure customer data was being used in ethical manner and how would you enforce it? If you say fines, how much?

  Create a database for the application

Perform the following tasks to create the database required for the application: Create a database for the application.

  Data and information management

Model organisational information requirements using conceptual data modelling techniques

  Difference between data and information and knowledge

Briefly explain the difference between data, information, and knowledge. -  Briefly explain the difference between explicit and tacit knowledge. Give an example of each.

  Design relational database using entity-relationship diagram

Design a Relational Database using Entity-Relationship Diagram (ER-D) and design a Relational Database by Mapping Entity-Relationship Diagram (ER-D) into Relational Models.

  Researchers wanted to explore self-esteem in adolescent

researchers wanted to explore self-esteem in adolescent boys and adolescent girls. each respondent completed a 10-item

  Discuss about the database modeling and normalization

Imagine that you work for a consulting firm that offers information technology and database services. Part of its core services is to optimize and offer streamline solutions for efficiency. In this scenario, your firm has been awarded a contract t..

  Discuss sqlmap an automated tool for sql injection

Discuss sqlmap, an automated tool for sql injection and database takeover in 500 words or more. How does it work? Where do you get it? How much does it cost?

  Explain the idea for database and partitioned view

Explain the idea for the database along with the thoughts for partitioned view. How would you utilize this partitioned view?

  Describe the business rules that could impact the structure

Describe the business rules that could impact the structure of the database. Describe the entities of the database and the attributes of each entity.

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