MySQL + SQL · Lesson 24

Functional Dependency in DBMS

What is Functional Dependency?

A functional dependency (FD) X → Y means: if you know X, you can uniquely determine Y. It is the foundation of normalization.

Example: roll_no → name means each roll_no determines exactly one name.

Types of FD

TypeMeaning
Trivial FDY is a subset of X (e.g. {roll_no,name}→name)
Non-trivial FDY is not a subset of X (roll_no→name)
Fully functionalY depends on the whole key, not part
PartialY depends on part of a composite key
TransitiveX→Y and Y→Z gives X→Z

Armstrong's Axioms

  • Reflexivity: if Y ⊆ X then X→Y.
  • Augmentation: if X→Y then XZ→YZ.
  • Transitivity: if X→Y and Y→Z then X→Z.

Summary

  • FD X→Y: X determines Y.
  • Types: trivial, non-trivial, full, partial, transitive.
  • Armstrong's axioms: reflexivity, augmentation, transitivity.
🔗

Share this topic with a friend

यह topic किसी दोस्त को भेजें

Found it useful? Send it to a classmate learning the same thing.

अच्छा लगा? जो दोस्त यही सीख रहा है, उसे भेज दीजिए।

WhatsApp