0
0
DBMS Theoryknowledge~5 mins

Functional dependency definition in DBMS Theory - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a functional dependency in a database?
A functional dependency is a relationship between two sets of attributes in a database where the value of one attribute (or set of attributes) uniquely determines the value of another attribute (or set of attributes).
Click to reveal answer
beginner
Explain the notation A → B in functional dependency.
The notation A → B means that attribute A functionally determines attribute B. If two rows have the same value for A, they must have the same value for B.
Click to reveal answer
intermediate
Why are functional dependencies important in database design?
Functional dependencies help identify how data is related and are used to organize tables to reduce redundancy and avoid update anomalies.
Click to reveal answer
beginner
Give a real-life example of a functional dependency.
In a student database, StudentID → StudentName means the student ID uniquely determines the student's name. If two records have the same StudentID, they must have the same StudentName.
Click to reveal answer
intermediate
Can a functional dependency have multiple attributes on the left side? Explain.
Yes, a functional dependency can have a set of attributes on the left side. For example, (CourseID, StudentID) → Grade means the combination of CourseID and StudentID uniquely determines the Grade.
Click to reveal answer
What does the functional dependency A → B mean?
AA and B are unrelated
BB uniquely determines A
CA uniquely determines B
DA and B have the same value
Which of the following is an example of a functional dependency?
AStudentID → StudentName
BStudentName → StudentID
CGrade → CourseID
DCourseName → StudentID
Why are functional dependencies used in databases?
ATo increase data duplication
BTo organize data and reduce redundancy
CTo make queries slower
DTo delete data randomly
Can a functional dependency have multiple attributes on the left side?
AOnly in special databases
BNo, only one attribute is allowed
COnly if the right side has multiple attributes
DYes, it can have a set of attributes
If two rows have the same value for attribute A, what must be true for attribute B in A → B?
AThey must have the same value for B
BThey can have different values for B
CB must be null
DB must be unique
Describe what a functional dependency is and why it matters in database design.
Think about how one piece of data can decide another.
You got /3 concepts.
    Give an example of a functional dependency from everyday life and explain it.
    Consider IDs and names or similar pairs.
    You got /3 concepts.