retagged by
482 views
0 votes
0 votes

We have a database table with relational schema $\text{R(XYZPQ)}:$

$$\begin{array}{|c|c|c|c|c|} \hline \text{X} & \text{Y} & \text{Z} & \text{P} & \text{Q} \\\hline \text{A1} & \text{B1} & \text{C1} & \text{D1} & \text{E1}  \\\hline \text{A2} & \text{B2} & \text{C1} & \text{D2} & \text{E1} \\\hline \text{A3} & \text{B2} & \text{C2} & \text{D1} & \text{E2}   \\\hline \text{A4} & \text{B3} & \text{C1} & \text{D3} & \text{E3} \\\hline \text{A5} & \text{B2} & \text{C2} & \text{D4} & \text{E2} \\\hline \end{array}$$

which of the following statement is true?

  1. $\text{ZP} \rightarrow \text{Q}$ is a functional dependency.
  2. $\text{Y} \rightarrow \text{X}$ is a functional dependency.
  3.  None of the above
  4. $\text{YZ} \rightarrow \text{P}$ is a functional dependency.
retagged by

1 Answer

0 votes
0 votes

ZP-->Q :     ZP is unique hence hence Obviously ZP-->Q is a Functional Dependency for the instance.

 

Y-->X  :        There are 2 B2 in Y but both does not correspond to same 'X' [2nd and 3rd row] So Fail for Functional Dependency.

 

YZ-->P :      There are B2,C2(Y,Z) two times but these combination does not correspond to same 'P'.[3rd and 5th row]

 

So,A is the correct answer.

Answer:

Related questions

1 votes
1 votes
1 answer
4
admin asked Jan 5, 2019
398 views
The set of equations $x^{2} + y^{2} = 1$ and $x + y = 0$ has how many real solutions?Infinite number of solutionsNo solution$2$ solutions$1$ solution