Describe how that transaction would be performed

Assignment Help Other Subject
Reference no: EM132688613

Assignment: 1. (a) In an environment in which several users share access to a single database, can one user ever block another's access for an unlimited period of time? (This situation is called indefinite postponement.)

(b) Describe a scenario in which two users could cause the indefinite postponement of each other.

(c) Describe a scenario in which a single user could cause the indefinite postponement of all users.

2. Using the two-step commit presented in the beginning of this chapter, describe how to avoid assigning one seat to two people, as in the airline example. That is, list precisely which steps the database manager should follow in assigning passengers to seats.

3. Suppose a database manager were to allow nesting of one transaction inside another. That is, after having updated part of one record, the DBMS would allow you to select another record, update it, and then perform further updates on the first record. What effect would nesting have on the integrity of a database? Suggest a mechanism by which nesting could be allowed.

4. Can a database contain two identical records without a negative effect on the integrity of the database? Why or why not?

5. Some operating systems perform buffered I/O. In this scheme, an output request is accepted from a user and the user is informed of the normal I/O completion. However, the actual physical write operation is performed later, at a time convenient to the operating system. Discuss the effect of buffered I/O on integrity in a DBMS.

6. A database transaction implements the command "set STATUS to ‘CURRENT' in all records where BALANCE-OWED = 0."

(a) Describe how that transaction would be performed with the two-step commit described in this chapter.

(b) Suppose the relations from which that command was formed are (CUSTOMER-ID,STATUS) and (CUSTOMER-ID,BALANCE-OWED). How would the transaction be performed?

(c) Suppose the relations from which that command was formed are (CUSTOMER-ID,STATUS), (CREDIT-ID,CUSTOMER-ID), (CREDIT-ID, BALANCE-OWED). How would the transaction be performed?

7. Show that if longitudinal parity is used as an error detection code, values in a database can still be modified without detection. (Longitudinal parity is computed for the nth bit of each byte; that is, one parity bit is computed and retained for all bits in the 0th position, another parity bit for all bits in the 1st position, etc.)

8. Suppose query Q1 obtains the median ml of a set S1 of values, and query Q2 obtains the median m2 of a subset S2 of S1. If m1 < m2, what can be inferred about S1, S2, and the elements of S1 not in S2?

9. One approach suggested to ensure privacy is the small result rejection, in which the system rejects (returns no result from) any query, the result of which is derived from a small number, for example, five, of records. Show how to obtain sensitive data by using only queries derived from six records.

10. Cite a situation in which the sensitivity of an aggregate is greater than that of its constituent values. Cite a situation in which the sensitivity of an aggregate is less than that of its constituent values.

Reference no: EM132688613

Questions Cloud

Distinguish fraud from error : Can inherent risk be reduced to zero? Why or Why not? How about control risk? Why or Why not? Distinguish fraud from error.
Chemical explanation of the trend : For the above Volume of Solution Absorbed per Mass of Sodium Polyacrylate vs. Nickel Nitrate plot, clearly explain the trend in the data on a molecular level.
Adequate progress-every student succeeds act : Provide a brief summary of the differences between No Child Left Behind and the Every Student Succeeds Act (ESSA).
Estimate cash collected from customers in fiscal year : Estimate cash collected from customers in fiscal year 2020. Clorox Annual Report for Fiscal Year 2020 (PDF) (i.e., the fiscal year ended June 30, 2020)
Describe how that transaction would be performed : Describe how that transaction would be performed with the two-step commit described in this chapter. Suppose the relations from which that command was formed.
Calculate the molarity of a solution : hat is the molarity (M) of a solution prepared by dissolving 15.0 g of sodium hydroxide in enough water to make a total of 225 mL of solution?
Explain the reaction at the micro-scale : Explain the reaction at the micro- scale. 2NaHCO3 (s)23 (s) 2(l)2 (g)Cite sources
What is the amount of inventory purchases in fiscal year : What is the amount of inventory purchases in fiscal year 2020? Consider the excerpts from the Clorox Annual Report for Fiscal Year 2020
Distinguish inherent risk and control risk : What the different factors considered when understanding the entity and its environment? Explain. Distinguish inherent risk and control risk.

Reviews

Write a Review

Other Subject Questions & Answers

  Explain the common sources of measurement error

Analyze and describe issues related to the testing of cultural and linguistic minorities.Explain the common sources of measurement error .

  Develop an idea for entrepreneurial business venture

ENT300-Students will develop an idea (product/service) for an entrepreneurial business venture. The business idea needs to be new venture, not existing company

  What was your plan for diagnostics and primary diagnosis

What was your plan for diagnostics and primary diagnosis? What was your plan for treatment and management including alternative therapies

  What are the risks of obesity

Describe methods that would help to increase weight loss for overweight and obese individuals.

  What are the benefits of the exclusionary rule

Describe the Exclusionary Rule and what it is meant to protect the citizens of this country from. What are the benefits of the Exclusionary Rule? Explain.

  Can people come up with any examples from world history

In real life, Socrates was put to death by the state because of his apparent corruption of the youth and a lack of belief in the gods, which plays into Plato's.

  Choose a middle-range theory or grand theory in your opinion

Choose a middle-range theory or grand theory that, in your opinion, can be applied to research. What are the assumptions underpinning this theory? Discuss how this theory finds application in research.

  Legal obligation to pay lance for resurfacing his driveway

Is Jones under any legal obligation to pay Lance for resurfacing his driveway?

  Write down an 8 page analytical paper on some features of

write an 8 page analytical paper on some aspects of theu.s. 2012 election. you may examine one of the many

  What is officer discretion

What is officer discretion? Why do citizens often view it as placing too much power in the hands of officers?

  Determine current daily and annual rates of oil production

Using the literature or other sources, determine the current daily and annual rates of oil production for the world. What impact will "peak oil" have on the U.S.A.

  What was the event and who was involved

What was the event and who was involved? What was the social response? What was the economic response? What was the political response?

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