×

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

View Serializability in DBMS

View Serializability It is a type of serializability that can be used to check whether the given schedule is view serializable or not. A schedule called as a view serializable if it is view...

4 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.

Types of Data Abstraction in DBMS

What Is Data Abstraction? To ship an email, you want to know the address. But to send the email, you don't need to see where the email is physically stored. You...

6 minutes read.

Schedule in DBMS

Schedule A sequence of statements that specify the sequential order in which the statements of concurrent transactions are executed. The transaction will get committed when it executes the instructions successfully without any...

4 minutes read.

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.

Codds Rule of DBMS

Codd’s Rule of DBMS Database having certain constraints and tables, need not to be a relational database system always. For perfect database management system, there are certain rules for the database,...

3 minutes read.

Candidate Key in DBMS

Candidate key in DBMS: The candidate key is a single column or the set of columns that uniquely identifies the rows of data in the database table. It is a...

2 minutes read.

Secondary Key in DBMS

What are Keys? Keys in DBMS are the attributes or set of attributes that uniquely identify a row in a set of relations. A table (relation) can have a column or...

3 minutes read.

Founder of DBMS

The first database management system was built to automate the business of the General Electric Company. It was built by a small group of programmers. The Integrated Data Store IDS...

4 minutes read.

Query optimization in DBMS

Choosing an effective execution strategy to execute a query is a process known as query optimization. After the decision-making process of query parsing, which determines how many distinct ways a given...

5 minutes read.

Redundancy in DBMS

Data redundancy is a situation that is created in the database in which the same amount of data is stored in two different places. The different places are found in a...

3 minutes read.

BCNF in DBMS

BCNF stands for Boyce–Codd Normal Form. What is the Normal form? The normal form is mainly used to reduce the redundancy of the database tables. Or we can say that the normal form...

4 minutes read.

What is RDBMS?

To discuss the Relational Database Management System, there are some terms and concepts you need to know. Database Any collection of related information is called a database. The phone book is...

5 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.

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.

Components of an ER Diagram

An ER Diagram consists of the following components: Entity AttributesRelationships 1. Entity An entity may be an object, place, person, or an event which stores data in the database. In an entity-relationship diagram, an entity...

4 minutes read.

Advantages of DBMS

A Database Management System (DBMS) is a collection of programs which lets the end-users to manage and control the database. Database systems use query language for accessing, storing, and maintaining the...

3 minutes read.

Levels of Locking in DBMS

There are several levels of locks that can control the access to the elements stored at various levels in the Database. There can be multiple levels of the locks. These...

6 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.

Advantages and Disadvantages of DBMS

We need to understand what is Database Management System before discussing the advantages and disadvantages of the database management system, and also, need to understand what were the technologies and...

5 minutes read.