| [Tut/Lab Sessions] [Tut/Lab Sessions Schedule] | [Course Information] [COMP2400/6240 Home] |
![]()
![]()
Revise the material from Lecture 16, Lecture 17 and Lecture 18.
![]()
![]()
Below are five relations and their associated minimal FD diagrams.
For each relation:
Write the minimal FD list which corresponds to the given minimal FD diagram.
Find the candidate key(s) of the relation.
List the prime and non-prime attribute(s) of the relation.
Determine the highest normal form (1NF, 2NF, 3NF, BCNF) of the relation.


SUBURB (Suburb-name, State, Population, Postcode)


![]()
Below are six relations, each with its associated minimal FD list.
For each relation, state:
its candidate key(s)
its highest normal form (1NF, 2NF, 3NF, or BCNF)
Use the COMP2400/6240 convention for designating candidate keys.
R1 (A, B, C)
A → B
C → B
R2 (D, E, F, G)
D → E
E → F
R3 (H, I, J)
H → I
H → J
I → H
R4 (K, L, M, N)
K, L → M
K, L → N
M → L
R5 (t, a, n, g, o)
t → a
t → n
t → g
t → o
n → t
R6 (x, y, z)
The minimal FD list is empty
![]()
STUDENTID COURSECODE YEAR SEM MARK GRADE ---------- ---------- ---------- ---------- ---------- ------ 2010001 COMP1100 2005 1 67 CR 2010001 COMP1110 2005 2 2010001 COMP2400 2005 2 2010001 MATH1003 2005 1 81 HD 2010035 MATH1003 2004 1 55 P 2010035 COMP1100 2004 1 61 CR 2010035 COMP1110 2004 2 58 P 2010035 COMP2400 2005 2 2010035 INFS2004 2005 2 2010035 BUSN1001 2004 1 66 CR 2010018 MATH1003 2004 1 79 D 2010052 BUSN1001 2003 2 44 N 2010052 COMP1100 2003 1 NCN 2010052 BUSN1001 2005 1 53 P 2010052 COMP1100 2005 1 67 CR 2010069 COMP1100 2002 1 78 D 2010069 COMP3100 2004 3 70 D 2010069 COMP2400 2004 2 76 D
Below are seven functional dependencies (FDs) among the attributes/columns in the table above.
For each FD:
State whether the FD is Consistent or Inconsistent with the sample data in the table.
If the FD is Consistent, briefly explain the semantics of the FD.
If the FD is Inconsistent, give one example of the inconsistency.
STUDENTID → COURSECODE
COURSECODE → SEM
MARK → GRADE
COURSECODE, YEAR → MARK
STUDENTID, YEAR → GRADE
STUDENTID, COURSECODE, YEAR, SEM → MARK
STUDENTID, COURSECODE, YEAR, SEM → GRADE
![]()
|
URL: http://computer/student/comp2400.2006/tutlabs/tut4/index.shtml
Last modified: Wednesday, 30-Aug-2006 09:45:10 EST |