Which statement best explains why functional dependencies are important in database schema design?
Think about how to avoid data duplication and inconsistencies.
Functional dependencies show which attributes depend on others, helping to organize data to reduce redundancy and improve integrity.
Given a table Students(ID, Name, Major, Advisor) with the functional dependency ID → Name, Major, Advisor, which query result indicates a violation of this dependency?
SELECT ID, Name, Major, Advisor FROM Students WHERE ID = 101;Look for rows with the same ID but different values in other columns.
If the same ID has different Majors, the functional dependency ID → Major is violated.
Which of the following correctly expresses the functional dependency that attribute A determines attribute B in a relation?
Functional dependencies use a specific arrow symbol.
The correct notation for functional dependency is A → B, meaning A functionally determines B.
You have a relation R(A, B, C, D) with functional dependencies A → B and C → D. Which schema design best reduces redundancy?
Think about separating attributes based on their dependencies.
Splitting into two tables based on the dependencies reduces duplication and improves normalization.
Consider a table Orders(OrderID, CustomerID, CustomerName, ProductID, ProductName) with the functional dependencies OrderID → CustomerID, ProductID and CustomerID → CustomerName. Which problem arises if CustomerName is stored in the Orders table?
Consider what happens when the same customer places many orders.
Storing CustomerName in Orders causes duplication and risks inconsistency if the name changes.