Question :

Explain the inference rules for functional dependencies in DBMS

Subject

Database Management System

Standard

Computer Science Engineering

Views

1766

Asked By

Kirti

Knowledge
Answer / Solution

The Functional dependency has 6 types of inference rule:

1. Reflexive Rule (IR1) : 

In the reflexive rule, if Y is a subset of X, then X determines Y.

2. Augmentation Rule (IR2)

The augmentation is also called as a partial dependency. In augmentation, if X determines Y, then XZ determines YZ for any Z.

3. Transitive Rule (IR3)

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

4. Union Rule (IR4)

Union rule says, if X determines Y and X determines Z, then X must also determine Y and Z.

5. Decomposition Rule (IR5)

Decomposition rule is also known as project rule. It is the reverse of union rule.

This Rule says, if X determines Y and Z, then X determines Y and X determines Z separately.

6. Pseudo transitive Rule (IR6)

In Pseudo transitive Rule, if X determines Y and YZ determines W, then XZ determines W.

Knowledge
Answer / Solution

The Functional dependency has 6 types of inference rule:

Reflexive Rule (IR1) : In the reflexive rule, if Y is a subset of X, then X determines Y.

If X ⊇ Y then X  →    Y  

Example 

X = {a, b, c, d, e}  
Y = {a, b, c}  

Augmentation Rule (IR2) : The augmentation is also called as a partial dependency. In augmentation, if X determines Y, then XZ determines YZ for any Z.

If X    →  Y then XZ   →   YZ   

Example

For R(ABCD),  if A   →   B then AC  →   BC  

Transitive Rule (IR3) : In the transitive rule, if X determines Y and Y determine Z, then X must also determine Z.

If X   →   Y and Y  →  Z then X  →   Z    

Union Rule (IR4) : Union rule says, if X determines Y and X determines Z, then X must also determine Y and Z.

If X    →  Y and X   →  Z then X  →    YZ     

Proof: 

X → Y (given)
X → Z (given)
X → XY (using IR2 on 1 by augmentation with X. Where XX = X)
XY → YZ (using IR2 on 2 by augmentation with Y)
X → YZ (using IR3 on 3 and 4)

Decomposition Rule (IR5) : Decomposition rule is also known as project rule. It is the reverse of union rule. This Rule says, if X determines Y and Z, then X determines Y and X determines Z separately.

If X   →   YZ then X   →   Y and X  →    Z   

Proof

X → YZ (given)
YZ → Y (using IR1 Rule)
X → Y (using IR3 on 1 and 2)

6. Pseudo transitive Rule (IR6) : In Pseudo transitive Rule, if X determines Y and YZ determines W, then XZ determines W.

If X   →   Y and YZ   →   W then XZ   →   W   

Proof:

X → Y (given)
WY → Z (given)
WX → WY (using IR2 on 1 by augmenting with W)
WX → Z (using IR3 on 3 and 2)
Knowledge
Answer / Solution

Rules of functional dependencies

There are six inference rules which are as follows −

  • Reflexivity: X->X // An attribute(s) determines itself
  • Augmentation: if X->Y then XZ->YZ
  • Transitivity: if X->Y & Y->Z then X->Z
  • Additivity or Union : if X->Y & X->Z then X->YZ
  • Projectivity or Decomposition: If X->YZ then X-> Y & X->Z
  • Pseudo-Transitivity: If X->Y, YZ->W then XZ->W
Knowledge
Answer / Solution

Let’s take a relation R with attributes R(A,B,C,D,E,F) F: AB->C, BC->AD, D->E, E->F, CF->B, then prove that F logically implies CD->B

Solutions

D->E, E->F THEN D=>F { Transitivity property}.

D->E, CF-> THEN D=>B {Pseudo-Transitivity}

D->E, E->F THEN D=>F {Transitivity}

D->F THEN CD->CF {Augmentation}

CD->CF, CF-> B THEN => CD-> B {Transitivity}


Top Trending Questions


Recent Question Update

Explain Domain Key Normal Form DKNF with example.
Explain Project Join Normal Form PJNF with example.
Explain 4nf and 5nf with example.
What is 5nf in DBMS.
What do you mean by 4NF in DBMS. Explain with example.
What is BCNF Boyce Codd Normal Form. Explain it.
What is normalization? Explain 3NF with example.
What is 2NF? How is it achieved.
What is 1NF? How do we achieve it.
What are the different normal forms in DBMS?
Brief Introduction to the Normalization.
Explain multivalued dependencies
What do you mean by lossless join? How can we test it.
What is the meaning of decomposition in DBMS? List its properties.
Explain the closure of attribute sets.
What do you mean by closure of a set of functional dependencies.
What is the Difference between BCNF and 4NF in DBMS.
SQL Full Outer Join Using Left and Right Outer Join and Union Clause
Difference between Natural join and Inner Join in SQL
Define aggregate function in database.
Write the operations which are responsible for database modification.
Explain natural join operation.
Differentiate union, intersection and set difference operations.
Explain fundamental operations of relational algebra with example.
What do you mean by database scheme. Explain with example.
What do you mean by relational algebra?
Explain Aggregation
What do you mean by Generalization and Specialization in DBMS?
Explain superclass and subclass entity types
Describe EER Model?
What is ER Entity relationship Diagram.
Explain the concept of weak entity and strong entity.
What are the entities and attributes? Explain them.
What are keys? Discuss its types.
Define relationship sets.
What do you mean by attributes? Explain its types.
What are the limitations of a database system.
Explain database administrator and its functions
Explain different database system users
What is database abstraction. Explain its levels.
Write advantages and disadvantages of Hierarchical Data Model
Write advantages and disadvantages of Network Data Model
Write advantages and disadvantages of Relational Data Model
What are data models? Explain its types.
Write different applications of a database
What are the advantages and disadvantages of a database system
Explain Database. Explain different types of elements.

Advantages Of NCERT, CBSE & State Boards Solutions For All Subjects

  • All the NCERT Solutions have been prepared by academic experts having 10+ years of teaching experience.
  • They have prepared all the solutions in simple and easy language so that each and every student can understand the concepts easily.
  • All the solutions have been explained step to step-wise in details with better explanations.
  • Students can also use these question and answers for your assignments and in homework help.
  • All the solutions have been explained in detail and the answers have been compiled in a step-wise manner.
  • All the questions and answers are commonly prepared according to the Latest Syllabus of Board Education and Guidelines.
  • Students can know about the various types of questions asked in the exams with the help of these solutions.

Top Course Categories