0
0
DBMS Theoryknowledge~20 mins

Why functional dependencies guide schema design in DBMS Theory - Challenge Your Understanding

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Functional Dependency Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Functional Dependencies in Schema Design

Which statement best explains why functional dependencies are important in database schema design?

AThey define the physical storage format of the database tables.
BThey help identify which attributes uniquely determine other attributes, guiding normalization.
CThey specify the order in which tables should be joined in queries.
DThey determine the color scheme used in database management tools.
Attempts:
2 left
💡 Hint

Think about how to avoid data duplication and inconsistencies.

query_result
intermediate
2:00remaining
Identifying Violations of Functional Dependencies

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?

DBMS Theory
SELECT ID, Name, Major, Advisor FROM Students WHERE ID = 101;
A[{ID: 101, Name: 'Alice', Major: 'Math', Advisor: 'Dr. Smith'}, {ID: 101, Name: 'Alice', Major: 'Math', Advisor: 'Dr. Smith'}]
B[{ID: 101, Name: 'Alice', Major: 'Math', Advisor: 'Dr. Smith'}]
C[]
D[{ID: 101, Name: 'Alice', Major: 'Math', Advisor: 'Dr. Smith'}, {ID: 101, Name: 'Alice', Major: 'Physics', Advisor: 'Dr. Smith'}]
Attempts:
2 left
💡 Hint

Look for rows with the same ID but different values in other columns.

📋 Factual
advanced
1:30remaining
Writing a Functional Dependency Expression

Which of the following correctly expresses the functional dependency that attribute A determines attribute B in a relation?

AA = B
BA => B
CA → B
DA <- B
Attempts:
2 left
💡 Hint

Functional dependencies use a specific arrow symbol.

optimization
advanced
2:30remaining
Choosing Schema Design Based on Functional Dependencies

You have a relation R(A, B, C, D) with functional dependencies A → B and C → D. Which schema design best reduces redundancy?

ASplit into two tables: <code>R1(A, B)</code> and <code>R2(C, D)</code>.
BCreate one table <code>R(A, B, C)</code> and another <code>R2(D)</code>.
CSplit into three tables: <code>R1(A, B)</code>, <code>R2(C, D)</code>, and <code>R3(A, C)</code>.
DKeep all attributes in one table <code>R(A, B, C, D)</code>.
Attempts:
2 left
💡 Hint

Think about separating attributes based on their dependencies.

🔍 Analysis
expert
3:00remaining
Detecting Functional Dependency Violation in Schema

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?

ACustomerName may be duplicated and inconsistent if a customer has multiple orders.
BOrderID will not uniquely identify rows in the table.
CProductName will be missing from the table.
DCustomerID cannot be used as a foreign key.
Attempts:
2 left
💡 Hint

Consider what happens when the same customer places many orders.