recategorized by
3,618 views
21 votes
21 votes
State whether the following statements are TRUE or FALSE:

A relation $r$ with schema $(X, Y)$ satisfies the function dependency $X \rightarrow Y$, The tuples $\langle 1, 2\rangle$ and $\langle 2, 2 \rangle$ can both be in $r$ simultaneously.
recategorized by

3 Answers

Best answer
36 votes
36 votes

True is answer.

$X\to Y$ says when $X$ repeats, $Y$ will be also repeat. Since, $X$ is not repeated, $Y$ may or may not repeat. 
$$\begin{array}{|c|c|} \hline \text {X} & \text {Y} \\\hline \text {1} &  \text{2 } \\\hline \text{2} & \text{2}  \\\hline \end{array}$$

edited by
5 votes
5 votes

Rules for Functional Dependency-

 

Rule-01:

 

A functional dependency X → Y will always hold if all the values of X are unique (different) irrespective of the values of Y.

 

Example-

 

Consider the following table-

 

A B C D E
5 4 3 2 2
8 5 3 2 1
1 9 3 3 5
4 7 3 3 8

 

The following functional dependencies will always hold since all the values of attribute ‘A’ are unique-

  • A → B
  • A → BC
  • A → CD
  • A → BCD
  • A → DE
  • A → BCDE

In general, we can say following functional dependency will always hold-

 

A → Any combination of attributes A, B, C, D, E

 

Similar will be the case for attributes B and E.

 

Rule-02:

 

A functional dependency X → Y will always hold if all the values of Y are same irrespective of the values of X.

 

Example-

Consider the following table-

 

A B C D E
5 4 3 2 2
8 5 3 2 1
1 9 3 3 5
4 7 3 3 8

 

The following functional dependencies will always hold since all the values of attribute ‘C’ are same-

  • A → C
  • AB → C
  • ABDE → C
  • DE → C
  • AE → C

 

In general, we can say following functional dependency will always hold true-

 

Any combination of attributes A, B, C, D, E → 

 

Combining Rule-01 and Rule-02 we can say-

 

In general, a functional dependency α → β always holds-

 

If either all values of α are unique or if all values of β are same or both.

 

Rule-03:

 

For a functional dependency X → Y to hold, if two tuples in the table agree on the value of attribute X, then they must also agree on the value of attribute Y.

 

Rule-04:

 

For a functional dependency X → Y, violation will occur only when for two or more same values of X, the corresponding Y values are different.

 

Courtesy:Gatevidyalay

Answer:

Related questions

14 votes
14 votes
2 answers
1
makhdoom ghaya asked Nov 9, 2016
3,932 views
State whether the following statements are TRUE or FALSE:The problem as to whether a Turing machine $M$ accepts input $w$ is undecidable.
14 votes
14 votes
4 answers
2
makhdoom ghaya asked Nov 9, 2016
3,549 views
State whether the following statement are TRUE or FALSE.$A$ is recursive if both $A$ and its complement are accepted by Turing machines.
21 votes
21 votes
4 answers
3
makhdoom ghaya asked Nov 9, 2016
3,348 views
State whether the following statements are TRUE or FALSE:The intersection of two CFL's is also a CFL.
13 votes
13 votes
2 answers
4
makhdoom ghaya asked Nov 9, 2016
2,514 views
State whether the following statements are TRUE or FALSE:All subsets of regular sets are regular.