×

Components of Relational Database Management System

A relational database management system compromises various component. Tables, records, attributes, instances, schemas and keys together form a relational database.

In this page, we will discuss each component of RDBMS in detail.

Table

It is the primary component of RDMS. A relational database may constitute one or more tables related together. It is a combination of rows and columns where rows represent different entries in the database and column represents the features or attributes of those entries. Each table has a unique name in RDBMS and a primary key to uniquely identify the entry. These entries are also called entities of the table.

Records

Each row of the table is a record of the single entity. This contains all the information about the entity and all its corresponding values to all the attributes of the particular entity. Each record in the table is called a tuple. For example: If we have an employee table with records of five employees, then each horizontal row with all detail of the particular employee is a Record.

Field or Column Name

Each column of a table represents a unique attribute of the entity. No two column names can be the same. They describe various attributes and features of the entity. For example: In the employee table there can be various attributes like employee name, employee_id and various other details.

Domain

It is a constraint on the entry of the value in the field of the table. It describes the set of values that can be accepted as valid inputs in the particular column. For example: In the Employee_phone_number this field will only accept a ten-digit integer number. The domain for various attributes can be specified by the user while creating the table. Any value that lies outside this set of values will not be accepted and an error will be thrown when such value is entered.

Schema and Instance

Schema: It describes the structure of the database at various levels. There are three layers of schema that separates the physical, logical and application part of the database. Schema determines the design of the database. Physical Schema, Logical Schema and the External Schema are mapped together. They interact with each other to perform the operations on the database. A schema represents all the entities of the database and the relationship between those entities.

1. Internal Level

The internal level of schema determines the definition of the database. It defines the physical structure of the database. It defines the format in which the data will be stored or say the structure in which the data will be stored. It is also known as the Physical Schema. It describes the complex data structures of the database. The user does not have the access to this level, only the data administrator can alter any change into it.

2. Conceptual Level

At this level, we describe the design of the database. This is called the logical schema; the end-user does not have access to this layer. The programmers and database administrators are the only ones with access to this level. At this level, we store the data in the data structures described at the physical level. Though the details of the implementation of the physical level are kept hidden at this level. It describes what data will be stored in the database.

3. External Level

It describes the various views of the database. This level is also called the view level. There can be different views for different users depending on the needs of the end-users. At this level, the end-user interacts with the database and the details of both physical and logical schemas are kept hidden from the user.

The hiding of details of one level from other and only showing the necessary information is called abstraction.

Instance: An instance is the view of the data stored in the database at a particular time. It is a snapshot of the database at that particular time. It is the moment at which we declare all the attributes of the table in the database and the data type variable that will be stored in the particular column. The instance of the database changes continuously whenever any updating is performed on the database.

Key

There are various types of keys in a database. Let us discuss each type one by one.

Primary Key – Each table should at least have a primary key, this key can uniquely identify each record of that table.

Super Key – A super key is a combination of multiple columns to uniquely identify a record of the table.

Candidate Key – Any key in the table is also a candidate key of that table.

Alternate Key– Every key except the primary key of the table is an alternate key. 

Composite Key– When we cannot uniquely identify each record with a single column entry, we combine multiple columns and assign the combination as the primary key.

Foreign Key – It refers to the primary key of the other table. They act as a way to refer to the entry of another table.


Related Topics

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.

ER Diagram of Company Database in DBMS

Entity Relationship Diagram Entity Relationship Diagrams, or ER Diagrams for short, are diagrams that show the relationships among entity sets that are stored in databases. Alternatively said, ER diagrams assist in...

3 minutes read.

Difference between Dropbox and Amazon Drive

What is Dropbox? It is a file organising company that is owned by the American Company Dropbox Inc. Itsheadquarters is situated in San Francisco, California, U.S. Dropbox offers personal cloud, client...

3 minutes read.

DBMS Tutorial | Database Management System

Database Management System (DBMS) tutorial is all about managing and maintaining the data effectively. Our DBMS tutorial is designed for beginners as well as professionals. What is Data? Data is a real-world...

5 minutes read.

Advantages of Database Management System in DBMS

A database management system (DBMS) is a software tool that provides an interface for managing data stored in a database. Some advantages of using a DBMS include: data integration, data...

3 minutes read.

Enforcing Integrity Constraints in DBMS

Introduction Integrity constraints are rules that specify the conditions that must be met for the data in a database to be considered valid. These constraints help to ensure the accuracy and...

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

Advantages of Threaded Binary Tree in DBMS

We know that every node in a binary tree contains both its data value and the address pointers for its left and right children. A null pointer is used to...

3 minutes read.

Meta Data in DBMS

Metadata: Metadata is simply described as information about information. It indicates that the data is described as well as its context. It makes data easier to find, interpret, and organize. I'll...

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

Three Schema Architecture of DBMS

The three schema architecture describes how the data is represented or viewed by the user in the database. This architecture is also known as three-level architecture and is sometimes called...

3 minutes read.

Advantages of RDBMS

The relational database management system collects related data stored in tabular format. The data is stored in rows and columns, where rows usually represent the individual entity of the collected...

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

Structure of DBMS

DBMS means Database Management System, which is a tool or software used to create the database or delete, or manipulate the database. Query Processor, Storage Manager, and Disk Storage are the...

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

DBMS Joins: Inner, Outer, Natural and Self Join

Joins are the combination of related tuples from the two different relations or tables into a single type. It is similar to the Cartesian product except the fact that in Cartesian product operation,...

4 minutes read.

Er Diagram Symbols and Notations in DBMS

Entity Relationship Diagram Entity Relationship Diagrams, or ER Diagrams for short, are diagrams that show the relationships among entity sets that are stored in databases. Alternatively said, ER diagrams assist in...

6 minutes read.

Network model in DBMS

Network model: The many-to-many relationship between the database constraints is represented hierarchically by the Network Model in DBMS. It is a straightforward and straightforward database model. Due to the Network Model...

4 minutes read.

Functional Dependencies

Functional Dependencies (FD) in the relational database management system occurs when one attribute in a relation uniquely determines other attribute in that relation. It describes the relation between the attributes. The term functional...

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