Recent questions tagged referential-integrity

2 2 votes
1 1 answer
134
134 views
Consider relation $S(D,E)$ with primary key $(D,E)$.The current instance of $S$ contains $(1,3)$, $(2,4)$, $(3,1)$.Relation $R(A,B,C)$ contains the foreign-key constraint...
2 2 votes
1 1 answer
101
101 views
Consider the relations $Parent(pid)$ and $Child(cid,pid)$where $Parent.pid$ is the primary key and $Child.pid$ is a foreign key referencing $Parent.pid$No cascading actio...
2 2 votes
1 1 answer
137
137 views
Let $R(A,B,C)$ be a referencing relation and $S(D,E)$ be a referenced relation.Suppose $B$ is a foreign key of $R$ that references the candidate key $D$ of $S$.Which of t...
4 4 votes
3 3 answers
738
738 views
Consider two relations $r$ and $s$ defined on the relational schemas $R(A, B)$ and $S(E, C)$, respectively. $A$ is the primary key of $R$ and $E$ is a foreign key of $S$ ...
3 3 votes
0 0 answers
363
363 views
In the case of referential integrity in RDBMS, there are solutions for INSERT, DELETE, and UPDATE operation problems on Referenced Table (or) Base Table like ON DELETE CA...
2 2 votes
1 1 answer
1.0k
1.0k views
Consider the two relations below. The primary keys are underlined. Identify all possible foreign key(s) from the options based only on the two relations.$\text{EMP (eid, ...
0 0 votes
2 2 answers
626
626 views
Mention which of the following is a special type of integrity constraint that relates two relations & maintains consistency across the relations.Entity Integrity Constrai...
3 3 votes
2 answers 2 answers
1.3k
1.3k views
Consider the following schema: Create table A(a1 int not null primary key, a2 int); Create table B(b1 int not null primary key, b2 int references A(a1) on delete cascade ...
49 49 votes
7 answers 7 answers
22.0k
22.0k views
Consider the following statements $S1$ and $S2$ about the relational data model:$S1$: A relation scheme can have at most one foreign key.$S2$: A foreign key in a relation...
4 4 votes
5 5 answers
1.5k
1.5k views
Domain constraints, functional dependency and referential integrity are special forms of _______Foreign keyPrimary keyAssertionReferential constraint
8 8 votes
5 5 answers
5.2k
5.2k views
Following table has two attributes Employee_id and Manager_id, where Employee_id is a primary key and manager_id is a foreign key referencing Employee_id with on-delete c...
1 1 vote
1 1 answer
3.2k
3.2k views
How to represent referential integrity constraint in ER model?pls explain with diagram
7 7 votes
5 answers 5 answers
5.2k
5.2k views
The following table has two attributes $X$ and $Y$ where $X$ is the primary key and $Y$ is the foreign key referencing $X$ with on-delete cascade.$\begin{array}{|c|c|} \h...
0 0 votes
0 0 answers
1.6k
1.6k views
I've some elementary doubts regarding Foreign keys (referential integrity) :Can a foreign key consist of a collection of attributes - ie. can two or more columns collecti...
0 0 votes
0 0 answers
1.5k
1.5k views
Referencing to this gate ques- https://gateoverflow.in/16095/gate2004_13-let-and-two-relation-schema-where-the-primary-keyLet R1 (A, B, C) and R2 (D, E) be two relation s...
0 0 votes
2 2 answers
927
927 views
Consider the join of a relation R with a relation S. If R has 100 tuples and S has 9 tuples then the maximum and minimum sizes of the join respectively under referential ...
2 2 votes
3 3 answers
11.0k
11.0k views
select the correct statement from the following on referential integritySelect one:a. referential integrity constraints check whether the primary key, values are uniqueb....
0 0 votes
1 1 answer
2.5k
2.5k views
Consider the join of a relation R with a relation S. If R has 100 tuples and S has 9 tuples then the maximum and minimum sizes of the join respectively under referential ...
2 2 votes
1 answers 1 answer
978
978 views
Let R (ABCD) and S(DEF). D is the foreign key in R that references primary key in S. Which of the following will not violation?a. Insertion in Rb. Insertion in Sc. Deleti...
1 1 vote
3 3 answers
2.0k
2.0k views
Match the following with respect to RDBMS :$\begin{array}{clcl} \text{(a)} & \text{Entity integrity} & \text{(i)} & \text{enforces some specific business rule that do not...
1 1 vote
1 1 answer
5.8k
5.8k views
Explain recursive foreign key with suitable example..
0 0 votes
0 0 answers
908
908 views
How one to many relation refers a foreign key?
3 3 votes
1 answers 1 answer
1.6k
1.6k views
105 105 votes
8 answers 8 answers
30.8k
30.8k views
Consider the following tables $T1$ and $T2.$$$\overset{T1}{\begin{array}{|c|c|c|} \hline \textbf {P} & \textbf {Q} \\\hline \text {2} & \text{2 }\\\hline \text{3} & \te...
1 1 vote
2 2 answers
5.3k
5.3k views
We can convert any weak entity set to a strong entity set by simply adding appropriate attributes. Why, then, do we have weak entity sets at all? $1)$ We want to avoid th...
2 2 votes
1 answers 1 answer
729
729 views
The rule that a value of a foreign key must appear as a value of some specific table is called aReferential constraintIndexIntegrity constraintFunctional dependency
3 3 votes
2 answers 2 answers
1.9k
1.9k views
What is on delete no action,on delete cascade, on delete set null action??explain through some eg??
5 5 votes
2 answers 2 answers
2.7k
2.7k views
3 3 votes
1 answers 1 answer
5.6k
5.6k views
____ constraints ensure that a value that appears in one relation for a given set of attributes also appears for a certain set of attributes in another relation.Logical I...