Consider a Relation: Student (EnrolNo, StudentName, ProgrammeCode, ProgrammeName,
CourseCode, CourseName, Grade). Some of the constraints on the relation Student are:
A student is assigned one unique Enrolment Number (EnrolNo).
Two students may have same name.
A student can register in one Programme only.
6
A Programme consists of several compulsory courses.
Grades can be “A”, “B”, “C”, or “D” and only one grade value is recorded for a student
in a course.
Perform the following task for the relation given above:
(i) What is the key to the relation?
(ii) Identify and list the functional dependencies in the relation.
(iii)Make an instance of this relation showing possible redundancies.
(iv) Decompose R into 2NF and 3NF relations.
(i) Key to the Relation
In the given relation Student(EnrolNo, StudentName, ProgrammeCode, ProgrammeName, CourseCode, CourseName, Grade), the key is a minimal set of attributes that can uniquely identify a record in the relation.
- EnrolNo is the unique identifier for a student, which guarantees that each student is uniquely represented by this attribute.
- Since EnrolNo uniquely identifies the student, we can say that EnrolNo is a candidate key.
However, considering that EnrolNo is unique for each student, the combination of attributes like (EnrolNo, CourseCode) is also a potential candidate key, as it ensures that each student's enrollment in a specific course is unique.
Thus, the primary key for this relation is likely EnrolNo, and the relation can be uniquely identified by this key.
(ii) Functional Dependencies
A functional dependency defines a relationship between two sets of attributes in which one set can uniquely determine the other. For this relation, we need to identify all the functional dependencies based on the constraints provided.
From the constraints:
- A student is assigned one unique EnrolNo: This implies that EnrolNo → StudentName, ProgrammeCode, ProgrammeName.
- A student can register in only one programme: This implies that EnrolNo → ProgrammeCode, ProgrammeName.
- A Programme consists of several compulsory courses: This implies that ProgrammeCode → CourseCode, CourseName.
- A
_________ _________ _____ _____ ______ ____ __________ _____ __________.
_________ _________ ______ _________ _____ ____ ____ ___.
____ ________ _____ _______ _______ ___ _______.
____ ____ _____ __________ ____ ____ __________ ______ ________ ________ ________ ____.
_________ _________ ____ _____ _______ _______ _______.
___ ___ ___ ________ ________ __________ _________ _____ ________ ______ ______.
____ ______ _________ _________ _____ _________ ____ ________ __________ _______ _________.
______ ________ ________ __________ ___ _____ ____ _________ ________ _____ _________ ___.
______ _________ _______ _______ ___ _____ ____ ________ ___ _________ ________.
___ _________ ___ ______ ___ ______ _______ ______ _____.
____ ________ ________ ________ _________ ______ ________ _____ ______.
_________ ______ ____ _________ _________ _______ ____ _________ ________ ___ ________.
_______ ______ ______ _____ ____ __________ ________.
_____ ____ _________ _____ ___ ____ ______.
__________ ___ _____ _________ ______ _______.
___ ________ ______ __________ ____ _____ ___ ______ _________.
__________ ____ _________ _____ ________ ______ _________ _____ ____ _________ __________ __________.
_________ ____ ______ ______ ________ _______ ___ _____ ___.
_____ ___ ___ ____ ________ ___ _______.
_____ _________ __________ _________ _____ _______ _______ __________.
_____ ________ _________ ________ ______ _____ __________ ___ ___.
_______ ________ _______ _________ ______.
_______ _______ _________ _________ _____ _________ __________ __________ ________.
____ ______ _______ _____ ______ ______ _________ _______.
__________ ____ ________ ___ ___ ________ ______ _____ ______ _______ _______ _________.
___ __________ ___ __________ ____.
_________ _______ __________ ______ ____ ________ _______.
_______ _________ ________ _________ _______.
______ _______ _____ __________ ___ _________ _________ _____ __________.
____ ___ __________ ___ ___.
_____ ____ ___ __________ ______ _________ _______ __________.
________ _______ __________ ________ _____ ________ ________ _________.
__________ ________ ____ _________ _____ __________ __________ ________.
________ ____ _____ _______ _____ ______ ___ ____ _________ ________ _________ ________.
______ _________ __________ __________ _____ _______ _____ _________ ________ _____ ______.
________ _____ _______ _____ _________ ______ _______ ______ __________ _______ ___ _____.
_______ ____ _________ ________ _______ ____.
_______ _______ _______ ______ ____ __________ __________ ____.
________ __________ ___ _____ ____.
___ ________ _______ __________ _________ _________ ________ _____ _______ ___.
_________ _______ _______ ___ _______ ________.
____ __________ _________ _______ ____ ___ __________ ________ __________ ___.
________ ___ ____ ______ ___ __________ _________ _________ ___.
_________ ___ __________ __________ ________ ______.
_____ ____ ____ _____ __________ ______.
_____ _____ ___ _____ _________ _________ ____ _________ ____.
___ ____ ______ ________ ______ _____ ____ ___ _______ _____.
______ __________ _______ ___ ______ _______.
______ ____ ________ _______ __________ ____ ___ _____.
______ ______ ___ ___ ___ __________ ________ ______.
__________ _____ _________ _________ __________ _________ _______ _______ _________ _______.
_____ ___ ______ ____ _____ ____ ___.
_____ ________ ____ ______ ______ ____ _______.
________ ____ ___ _______ _________ ______ _____.
_________ _____ _________ ___ ____.
_____ ________ _________ _______ ____ ______ _________ ____.
_____ _____ _____ ______ ____ ________ _______ ___ ____ _________ __________.
________ ______ _______ ____ _______ ___.
___ ___ _________ _________ _____ _______ __________ _____ ___ ____.
_________ ______ _____ _________ ______ _________ _________ ____ _______ __________ _____ ___.
_____ ____ _______ __________ _________ _________ __________ __________ _______ ____ _________.
_________ ___ __________ ________ ________ ___ _______ ________.
_________ ____ _____ ____ _____.
___ ________ __________ _________ ________.
________ ____ _____ _____ ___ ________ _______ ____.
___ __________ ______ __________ ________ _________ ______ _______.
_____ ________ ______ ___ _____.
_____ ____ ____ _____ _________ _______ _____ _______.
_________ __________ ______ _____ ______ ___ ____ _________ _______ _________.
________ __________ ____ ___ _____.
___ ______ ______ _______ _________ ___ ______ _________ _______.
_____ _________ ___ ______ ______ __________ _______.
- Solved Assignments
- Study Notes
- Guess Papers
- Question Papers
✓ Unlock up to 60% of the answer
✓ No payment required