Question

In a referential integrity constraint where attribute A in relation R references attribute A in relation...

In a referential integrity constraint where attribute A in relation R references attribute A in relation S, what must be checked in each of these modifications for this referential integrity constraint. Be precise.

(a) inserting a tuple into relation R

(b) inserting a tuple into relation S

(c) deleting a tuple from relation R

(d) deleting a tuple from relation S

Homework Answers

Answer #1

All values of A in R should be present in S.

A)

Since we're inserting new tuples into R it should be present in S so we should check whether it's violating referential integrity constraint.

B)

Inserting into S doesn't cause any problem.

C)

Deleting a tuple in R doesn't cause any problem.

D)

Deleting a tuple in S may cause referential integrity constraint because if we delete the tuple to which an attribute is referring from R it can't find out the referred tuple.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Statement 1: Referential Integrity refers to the validity of an attribute domain. True or False. Statement...
Statement 1: Referential Integrity refers to the validity of an attribute domain. True or False. Statement 2: In SQL, when Create a table, the foreign key must be not null. True or False. a) Both are True b) 1 is True, 2 is False c) 1 is False, 2 is True d) Both are False
Determine whether the binary relation R on {a, b, c}   where R={(a, a), (b, b)), (c,...
Determine whether the binary relation R on {a, b, c}   where R={(a, a), (b, b)), (c, c), (a, b), (a, c), (c, b) } is: a. reflexive, antisymmetric, symmetric b. transitive, symmetric, antisymmetric c. antisymmetric, reflexive, transitive d. symmetric, reflexive, transitive
Please quesiton on database function dependency: Suppose we have relation R (A, B, C, D, E),...
Please quesiton on database function dependency: Suppose we have relation R (A, B, C, D, E), with some set of FD’s , and we wish to project those FD’s onto relation S (A, B, C). Give the FD’s that hold in S if the FD’s for R are: c) AB --> D, AC --> E, BC --> D, D --> A, and E --> B. d) A --> B, B --> C, C --> D, D --> E, and E...
4. Consider the relation schema R(ABCDE) with the set of functional dependencies F={B→E, A→B, DE→C, D→A,...
4. Consider the relation schema R(ABCDE) with the set of functional dependencies F={B→E, A→B, DE→C, D→A, C→AE}. For the following relations resulting from a possible decomposition of R, identify the non-trivial functional dependencies which can be projected to each of the decomposed relations. a) S(ABC) b) T(BCE) c) U(ABDE
Suppose we have the following relation R with composite primary key {A,B} together with the set...
Suppose we have the following relation R with composite primary key {A,B} together with the set FD of functional dependencies: R(A,B,C,D,E,F,G). FD = { C -> G, E -> B, A -> D, AB -> C, AB -> D, AB -> E. AB -> F, AB -> G } Draw the initial dependency diagram using the above information. The relation from part a) is in first normal form. Using the techniques described in the lecture, convert it to 2NF by...
Consider the following set S = {(a,b)|a,b ∈ Z,b 6= 0} where Z denotes the integers....
Consider the following set S = {(a,b)|a,b ∈ Z,b 6= 0} where Z denotes the integers. Show that the relation (a,b)R(c,d) ↔ ad = bc on S is an equivalence relation. Give the equivalence class [(1,2)]. What can an equivalence class be associated with?
In Locality Sensitive Hashing, we divide signature columns to b bands where there are r elements...
In Locality Sensitive Hashing, we divide signature columns to b bands where there are r elements in each band for each column. Consider two columns C1 and C2 of length m = br. Suppose that for each i = 1, .., m, the probability that C1(i) = C2(i) is equal to s independently from other elements. Note that s is in fact the similarity of the two columns. (a) Show that the probability that the two columns are equal in...
A particle moves with position r(t) = x(t) i + y(t) j where x(t) = 10t2...
A particle moves with position r(t) = x(t) i + y(t) j where x(t) = 10t2 and y(t) = -3t + 2, with x and y in meters and t in seconds. (a) Find the average velocity for the time interval from 1.00 s to 3.00 s. (b) Find the instantaneous velocity at t = 1.00 s. (c) Find the average acceleration from 1.00 s to 3.00 s. (d) Find the instantaneous acceleration at t = 1.00 s.
1. Suppose we have the following relation defined on Z. We say that a ∼ b...
1. Suppose we have the following relation defined on Z. We say that a ∼ b iff 2 divides a + b. (a) Prove that the relation ∼ defines an equivalence relation on Z. (b) Describe the equivalence classes under ∼ . 2. Suppose we have the following relation defined on Z. We say that a ' b iff 3 divides a + b. It is simple to show that that the relation ' is symmetric, so we will leave...
B&R and Sweet J are two competitors that sell flavored ice cream in a market where...
B&R and Sweet J are two competitors that sell flavored ice cream in a market where they are the only two sellers. Both companies are considering what actions to undertake in the following week. The profit of each firm depends on the other firm's decision. The payoff matrix shown here gives each firm’s daily profits. The first entry in each cell of the payoff matrix is B&R’s profit, and the second entry is Sweet J’s profit. Sweet J Advertise Do...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT