Normalization for Relational Databases - functional dependencies, normalization - Question Bank
1. Which normal form is defined as being in 3NF and having no transitive dependencies of non-prime attributes on any candidate key?
2. The goal of normalization is to design a database schema that:
3. Consider a relation R(A, B, C) with primary key A and functional dependencies A -> B, A -> C. This relation is:
4. If a relation is in 1NF, it means:
5. What is the main challenge with BCNF decomposition if dependency preservation is desired?
6. Which of the following is a valid inference rule from Armstrong's axioms?
7. Consider a relation R(Student_ID, Student_Name, Advisor_ID, Advisor_Name). Dependencies: Student_ID -> Student_Name, Advisor_ID -> Advisor_Name, Student_ID -> Advisor_ID. Primary Key: Student_ID. This relation has a transitive dependency of Student_Name on Student_ID via Advisor_ID. To achieve 3NF, what decomposition is suitable?
8. What is the purpose of the Armstrong Axioms in relation to functional dependencies?
9. A relation R(A, B, C) has primary key A, and the functional dependency B -> C exists. If B is not a superkey, this violates which normal form?
10. Which of the following is a characteristic of Boyce-Codd Normal Form (BCNF)?
11. In the context of normalization, denormalization is the process of:
12. Consider a relation R(StudentID, StudentName, CourseID, Grade). Dependencies: StudentID -> StudentName, StudentID, CourseID -> Grade. Primary Key: (StudentID, CourseID). Which normal form is this relation in?
13. What is a non-prime attribute?
14. Which normal form is considered the most desirable for most practical applications, balancing normalization benefits with performance considerations?
15. If a relation R(A, B, C) has primary key A, and dependencies A->B and B->C, which is a transitive dependency?
16. What is the role of the closure of a set of attributes X, denoted X+?
17. Consider a relation R(A, B, C, D) with primary key A, and functional dependencies A -> B, B -> C, C -> D. To achieve BCNF, what decomposition is needed?
18. Which normal form is primarily concerned with multivalued dependencies?
19. When decomposing a relation R into R1 and R2, what is the dependency preservation property?
20. What is the 'lossless join' property in database decomposition?
21. Consider the relation R(EmployeeID, EmployeeName, DepartmentID, DepartmentName). Functional dependencies: EmployeeID -> EmployeeName, DepartmentID -> DepartmentName, EmployeeID -> DepartmentID. Primary Key: EmployeeID. Which normal form is this relation in?
22. Which normal form requires that for every non-trivial functional dependency X -> Y, X must be a superkey, AND for every non-trivial multivalued dependency X ->> Y, X must be a superkey?
23. If a relation is in 3NF, it means:
24. What is the main purpose of creating candidate keys?
25. Which of the following functional dependencies violates BCNF in a relation R(A, B, C) with primary key A?
26. A relation is in 2NF if it is in 1NF and:
27. What is a superkey?
28. Consider a relation Employee(EmpID, EmpName, DeptID, DeptName, ProjectID, ProjectName). If EmpID -> EmpName, DeptID -> DeptName, ProjectID -> ProjectName, and EmpID, DeptID, ProjectID together form the primary key. To achieve 3NF, what decomposition might be necessary?
29. If a relation R is in BCNF, does it guarantee that it is also in 3NF?
30. Which of the following is NOT a type of anomaly addressed by normalization?
31. What is a trivial functional dependency?
32. To achieve BCNF, a relation R must satisfy which condition?
33. Consider a relation Student(StudentID, StudentName, CourseID, CourseName, InstructorID, InstructorName). If StudentID determines StudentName, CourseID determines CourseName, and InstructorID determines InstructorName, but also StudentID, CourseID, InstructorID together form the primary key, what kind of dependencies exist?
34. What is the process of decomposing a relation into smaller, well-structured relations called?
35. If a relation has a composite primary key (A, B) and an attribute C is dependent on A only (A -> C), this represents a:
36. A relation is in Third Normal Form (3NF) if it is in 2NF and:
37. Which normal form is considered the 'all-singing, all-dancing' normal form and is a stronger version of 3NF?
38. A deletion anomaly happens when:
39. An update anomaly occurs when:
40. Which of the following is an example of an insertion anomaly?
41. What is the main problem that normalization aims to solve in databases?
42. In the context of normalization, what is a prime attribute?
43. Consider a relation R(A, B, C) with functional dependencies A -> B and B -> C. If A is the primary key, what type of dependency is A -> C?
44. Which normal form addresses partial dependencies?
45. What is a partial dependency?
46. Which normal form requires that every non-trivial functional dependency X -> Y has X as a superkey?
47. A relation is in First Normal Form (1NF) if it contains only atomic values. What does 'atomic' mean in this context?
48. Which normal form aims to eliminate transitive dependencies?
49. In a functional dependency X -> Y, what is X referred to as?
50. Which type of dependency states that for any two tuples in a relation, if their values for attribute set X are equal, then their values for attribute set Y must also be equal?