Inference Rules in DBMS Last Updated : 29 Jul, 2024 Comments Improve Suggest changes Like Article Like Report Inference rules in databases are also known as Armstrong’s Axioms in Functional Dependency. These rules govern the functional dependencies in a relational database. From inference rules a new functional dependency can be derived using other FDs. These rules were introduced by William W. Armstrong. In this article, we will come to know about all the rules proposed by him. Also, we will be exploring the prerequisites for it and will understand the topic in a better way.PrerequisitesAttributes: When we talk about databases, we think of them as organized collections of information. Imagine that you have a table called “Student.” Now, this table has columns, which we also call “Attributes.” These columns define specific details about the students. For example:Student_name: This column stores the names of the students.Roll_no: Here, we keep track of their roll numbers.Marks: And finally, we record their exam scores.Functional Dependencies (FDs) are like the building blocks of a database. Imagine you have a bunch of attributes (think of them as characteristics) in a table. These attributes can be related to each other in interesting ways or say logically. For example, Roll_no → Marks means that from Roll_no we can get the Marks of the student, which shows that they are Roll_no is logically related to Marks.Inference RulesThere are 6 inference rules, which are defined below: Reflexive Rule: According to this rule, if B is a subset of A then A logically determines B. Formally, B ⊆ A then A → B.Example: Let us take an example of the Address (A) of a house, which contains so many parameters like House no, Street no, City etc. These all are the subsets of A. Thus, address (A) → House no. (B).Augmentation Rule: It is also known as Partial dependency. According to this rule, If A logically determines B, then adding any extra attribute doesn't change the basic functional dependency. Example: A → B, then adding any extra attribute let say C will give AC → BC and doesn't make any change.Transitive rule: Transitive rule states that if A determines B and B determines C, then it can be said that A indirectly determines B. Example: If A → B and B → C then A → C. Union Rule: Union rule states that If A determines B and C, then A determines BC.Example: If A → B and A → C then A → BC.Decomposition Rule: It is perfectly reverse of the above Union rule. According to this rule, If A determined BC then it can be decomposed as A → B and A → C.Example: If A → BC then A → B and A → C.Pseudo Transitive Rule: According to this rule, If A determined B and BC determines D then BC determines D. Example: If A → B and BC → D then AC → D.ConclusionIn this article, we get to know about all the inference rules in DBMS and some basic terminologies related to it. Along with this we also learn that what are functional dependencies and how they are interrelated in the structured table inside the Database Management System. Comment More infoAdvertise with us Next Article Inference Rules in DBMS pradeep6036ymca Follow Improve Article Tags : DBMS Similar Reads Inference in AI In the realm of artificial intelligence (AI), inference serves as the cornerstone of decision-making, enabling machines to draw logical conclusions, predict outcomes, and solve complex problems. From grammar-checking applications like Grammarly to self-driving cars navigating unfamiliar roads, infer 5 min read Exact Inference in Bayesian Networks Bayesian Networks (BNs) are powerful graphical models for probabilistic inference, representing a set of variables and their conditional dependencies via a directed acyclic graph (DAG). These models are instrumental in a wide range of applications, from medical diagnosis to machine learning. Exact i 5 min read Tuple in DBMS Pre-requisites: Introduction of DBMSA tuple, also known as a record or row, is a basic unit of data in a relational database management system (DBMS). A tuple represents a single instance of a relation, or table, in the database. Each tuple contains a set of values, or attributes, that correspond to 4 min read Codd's Rules in DBMS Codd's rules are proposed by a computer scientist named Dr. Edgar F. Codd and he also invent the relational model for database management. These rules are made to ensure data integrity, consistency, and usability. This set of rules basically signifies the characteristics and requirements of a relati 3 min read Types of Spatial Queries in DBMS Any type of spatial data that is data related to location and which represents objects defined in a geometric space, is stored and maintained by Spatial Databases. These are used to handle these Spatial Databases. Spatial database mainly contain representation of simple geometric objects such as 3D 3 min read Pipeline in Query Processing in DBMS Database system processing in a satisfactory manner encompasses providing fast responses to data retrieval and manipulation tasks, with two of the keywords being performance and responsiveness. A concept that acts as the foundational element in improving batch processing performance is called "pipel 5 min read Use of DBMS in System Software Here we are going to discuss about how a user interacts with a DBMS, and how the DBMS is related to system software. Using a general-purpose programming language, user can write a source program in the normal way. However, instead of writing I/O statements of the form provided by the programming lan 5 min read Various rules of Object Oriented DBMS From the past few years, data management and application environment have been getting complex. These can be handled by the Object Oriented Database Management System (ODBMS). In this system, there are combined features of object-oriented and database management system. Figure - Object Oriented DBMS 4 min read Relational Model in DBMS The Relational Model represents data and their relationships through a collection of tables. Each table also known as a relation consists of rows and columns. Every column has a unique name and corresponds to a specific attribute, while each row contains a set of related data values representing a r 11 min read Tuple Relational Calculus (TRC) in DBMS Tuple Relational Calculus (TRC) is a non-procedural query language used in relational database management systems (RDBMS) to retrieve data from tables. TRC is based on the concept of tuples, which are ordered sets of attribute values that represent a single row or record in a database table. TRC is 4 min read Like