Armstrong’s axioms are a set of three fundamental rules in database theory used to derive all possible functional dependencies from a given set. These rules help ensure the consistency and correctness of relationships within a database.
The Three Primary Armstrong’s Axioms
Reflexivity
If a set of attributes (AA) contains another set (BB), then AA determines BB.
-
Example: If you have
roll_noandname, then you knownameif you have both.
Augmentation
If AA determines BB, then adding extra attributes (YY) to both sides will also hold: AY→BYAY→BY.
-
Example: If
roll_no → name, thenroll_no, age → name, agealso holds.
Transitivity
If A→BA→B and B→CB→C, then A→CA→C.
-
Example: If
roll_no → nameandname → age, thenroll_no → age.
Armstrong’s Axioms Matter
-
They allow logical reasoning about functional dependencies.
-
They are sound (only valid dependencies can be generated) and complete (all valid dependencies can be found using them).
Example of All Three
Suppose you know:
-
A → B -
B → C
By transitivity: A → C
By augmentation: A, D → B, D
By reflexivity: A → A
Armstrong’s axioms form the foundation for normalization and efficient relational database design.