Give an example of a schedule executing at SNAPSHOT isolation in which two transactions each introduce a phantom that is not seen by the other transaction, resulting in incorrect behavior. Assume that the data items referred to in the description of SNAPSHOT isolation are rows.

What will be an ideal response?

p is a predicate over a particular table and x and y are rows satisfying p.
SELECT1(p) SELECT2(p) INSERT1(x) INSERT2(y)
An integrity constraint states that there can be no more than n items in the database
satisfying predicate p. Each transaction reads the tuples satisfying p finds there are
exactly (n ? 1) and therefore inserts a newtuple satisfying p. At the end there are
(n + 1) tuples satisfying p

Computer Science & Information Technology

You might also like to view...

Queries that select data from existing queries are:

A) crosstab queries. B) internal queries. C) nested queries. D) doubled queries.

Computer Science & Information Technology

Windows Explorer has a pane located on the left side which can display the directory structure of one or more drives. What is the name of this pane?

A. Folder pane. B. File pane C. Directory pane D. Navigation pane

Computer Science & Information Technology