×

Inference Rules

Armstrong’s axioms are the complete set of basic inference rules used to infer all the functional dependencies on the relational database. An inference rule is a type of assertion that a user can apply to a set of functional dependencies to derive other FD (functional dependencies). These axioms in database management system were developed by the William w. Armstrong in 1974.

Following are the six most important rules for functional dependency:

1. Reflexive Rule

In the reflexive rule, if X is a set of attributes and Y is the subset of X, then X functionally determines Y.

If Y ? X, then X ? Y.

Example:

Lastname ?  Firstname, Lastname
then, Firstname, Lastname ? Lastname

2. Augmentation Rule

In the augmentation rule, if X determines Y and Z is any attribute set, then XZ determines YZ. It is also called as a partial dependency.

If X ? Y then XZ ? YZ for any Z.

Example:

Regno ? Firstname, Lastname
then, Regno, address ? Firstname, Lastname, address

3. Transitive Rule

In the transitive rule, if X determines Y and Y determines Z, then X also determines Z.

If X ? Y and Y ? Z then X ? Z.

Example:

Rollno ? addressand address ? Pincode
then Rollno ? Pincode

4. Union Rule

This rule is also known as additive rule. In the union rule, if X determines Y and X determines Z, then X also determines both Y and Z.

If X ? Y and X ? Z, then X ? YZ.

Proof of this Rule:

X ? Y (given) …. (1)
X ? Z (given) …. (2)
X ? XY (using Rule 2 on (1) by augmentation with X)     …. (3)
XY ? YZ (using Rule 2 on (2) by augmentation with Y)    …. (4)
X ? YZ (using Rule 3 on (3) and (4))

Example:

Rollno ? name and Rollno ? address
then Rollno ? name, address

5. Decomposition Rule

This rule is the reverse of Union rule and also known as project rule.In the decomposition rule, if X determines Y and Z together, then X determines Y and Z separately.

If X ? YZ then, X ? Y and X ? Z.

Proof of this Rule:

X ? YZ (given)…. (1)
YZ ? Z    and  YZ ?Y  ( using reflexive method) …. (2)
X ? Y and X? Z (using transitive rule) …. (3) 

Example:

Rollno ? Firstname, Lastname
then, Rollno ? Firstname and Rollno ? Lastname

6. Pseudo transitive Rule

In the pseudo transitive rule, if X determines Y, and YZ determines W, then XZ also determines W.

If X ? Yand YZ ? W then XZ ? W.

Proof of this Rule:

X ? Y (given) …. (1)
YZ ? W (given) …. (2)
XZ ? YZ (using augmentation rule in (1))  …(3)
XZ ? W (using a transitive rule in (2) and (3))

Example:

Rollno ? name and name, marks ?percentage
then, Rollno,marks ? percentage


Related Topics

B-Tree Insertion in DBMS

A B-tree is a special type of m-way tree, commonly used for disk access. A B-tree of order m can have at most m-1 keys and m descendants. B-trees are...

4 minutes read.

Fundamentals Of Distributed DBMS

Fundamentals of DDBMS Here we are going to talk about the Fundamentals of DDBMS. But first, we need to know about Distributed databases to understand the Distributed Database Management System. Distributed Database: It is...

4 minutes read.

DBMS View: Read, Update, Create and Drop

View in DBMS: The View is a logical or virtual table that allows users to view or manipulate parts of the table. View is also a table which consists of...

2 minutes read.

Components of DBMS

The database management system (DBMS) represents an essential tool for processing data within effectively structured structures. The database management system consists of important components that work together to maintain the...

6 minutes read.

ER Diagram for Company Database in DBMS

What is ER Diagram? An ER diagram (short for Entity Relationship Diagram), also known as an ERD, is a diagram that shows the relationships of a set of entities stored in...

7 minutes read.

DBMS Architecture

Architecture of Database Management System DBMS architecture helps in development, implementation, design, and maintenance of a database that store and organize information for agencies, businesses, and institutions. It is the base of any database...

2 minutes read.

Data Abstraction in DBMS

Introduction Data abstraction is a fundamental concept in database management systems (DBMS). It refers to the process of hiding the details of how data is stored and retrieved from the user,...

3 minutes read.

Conversion of ER Diagram into Relational Model

After designing the Entity-Relationship diagram, you need to convert it into tables in the relational model. Because the relational model can be easily implemented by the Relational DBMS like Oracle, MySQL, etc....

2 minutes read.

Normalization in DBMS: 1NF, 2NF, 3NF, BCNF & 4NF with Examples

Normalization is a technique of organizing the data in the database. It is a systematic approach which is used to remove or reduce data redundancy in the tables and remove the...

7 minutes read.

Inference Rules

Armstrong’s axioms are the complete set of basic inference rules used to infer all the functional dependencies on the relational database. An inference rule is a type of assertion that a user can...

2 minutes read.

DBMS Examples

Introduction to DBMS A database management system (DBMS) is a software application that is designed to manage and organize data stored in a database. It is responsible for storing, retrieving, and...

4 minutes read.

ACID Properties in DBMS

A transaction in a database has the following four properties, known as ACID properties. These properties are used to maintain the consistency of the database in the case of system failure and concurrent...

4 minutes read.

What is Transaction in DBMS

A transaction is a collection of logically related operations which reads and possibly updates the various data items in the database. Usually, a transaction is initiated by a user program written in high-level...

3 minutes read.

ER Model: Entity Relationship Diagram (ERD) with Examples

ER model stands for Entity-Relationship Model. It is a high-level data model diagram which defines the conceptual view of the database. It is a blueprint or design of a database that will...

2 minutes read.

Query processing in DBMS

Operations on DBMSs are made much simpler, more organized, and methodical with SQL. These are not only simpler for people to comprehend, but after gaining a basic comprehension of them, they...

4 minutes read.

Red-Black Tree Visualization in DBMS

Introduction to Red Black Tree A red-black tree is a self-balanced binary search tree with an extra bit per node, usually read as a color (red or black). The tree is...

4 minutes read.

ER Diagram for School Management System in DBMS

What is ER Diagram? An ERD, or entity relationship diagram, is a diagram that depicts the connections between a group of entities contained in a database. In other words, ER diagrams...

6 minutes read.

Levels of Abstraction in DBMS

Data abstraction is a way to hide unwanted or irrelevant information from the end user in DBMS. It helps in enhancing the security of data, and simplifies database design using...

4 minutes read.

Checkpoint in DBMS

A checkpoint in DBMS is used to define a point of the transaction that is in a consistent state and then all the transactions will be in the committed state...

4 minutes read.

Specialization in DBMS

Specialization in DBMS In the database management system, specialization breaks the higher-level entity into two or more than two lower entities. The main motive of this concept is to share the...

2 minutes read.