Question
Consider the relation with the following functional dependencies.
Consider the decomposition of the relation into the constituent relations according to the following two decomposition schemes.
Which one of the following options is correct?
Official answer and solution
- Official answer
- A
- From
- Official GATE 2021 answer key
Solution
Test whether each constituent relation can be losslessly combined using functional dependencies to determine common attribute keys.
Given schema with FDs:
For decomposition :
- Consider and : . The FD means is a key of . Merging them gives losslessly.
- Consider and : . Since , we have , so . Hence is a key of . Merging them gives losslessly.
- Consider and : . Since and , . Thus is a key of . Merging them produces losslessly.
Therefore, is a lossless decomposition.
For decomposition :
In , attribute appears only in . None of the given FDs have on the right side, so cannot be derived from any attributes outside . Furthermore, the intersection of with contains only , but does not functionally determine or any other attribute. Hence cannot be losslessly rejoined. Thus is lossy.
Therefore, is lossless, but is lossy (option A).
A
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2021 Computer Science and Information Technology (CS, Set-1)
- Question
- 43 of 65, printed as CS Q.33
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.