×

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

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.

Atomicity in Database Management System

In Database Management Systems, the term "atomicity" refers to the idea that database transactions are atomic units of work. This means that either all of the operations within a transaction...

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

Anomalies in Database Management System

Anomalies in a database management system (DBMS) are problems that can arise when the database is not designed or implemented correctly. These anomalies can affect the integrity and accuracy of...

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

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.

Relational Algebra in DBMS

Relational Algebra is a widely used procedural query language, which takes instances of one or more relation as an input and generates a new relation as an output. It uses a different...

6 minutes read.

Entity and Entity set in DBMS

What is DBMS? A database management system (DBMS) is a software application that interacts with end-users, other applications, and the database itself to capture and analyze the data. A DBMS allows...

3 minutes read.

Redundancy in Database Management System

Redundancy in a database management system (DBMS) refers to the duplication of data within the database. This duplication can occur in multiple ways, such as having multiple copies of the...

13 minutes read.

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.

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 Data Independence: Logical and Physical

Data Independence in DBMS: Data independence is a concept of DBMS which alters the schema of the database at one level of the database system without altering the schema definition...

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.

File Organization in DBMS

File Organization in DBMS: A database contains a huge amount of data, which is stored is in the physical memory in the form of files. A file is a set...

9 minutes read.

Applications of DBMS

There are various fields where a database management system is used. Following are some applications which make use of the database management system: 1. Railway Reservation System: In the railway reservation...

7 minutes read.

Concurrent Execution of Transaction

In the transaction process, a system usually allows executing more than one transaction simultaneously. This process is called a concurrent execution. Advantages of concurrent execution of a transaction Decrease waiting time or...

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.

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.

Conflict Serializability in DBMS

Conflict Serializability A schedule is said to be conflict serializable if it can transform into a serial schedule after swapping of non-conflicting operations. It is a type of serializability that can be used...

3 minutes read.

Aggregate Functions in DBMS

Aggregate Functions in DBMS: Aggregate functions are those functions in the DBMS which takes the values of multiple rows of a single column and then form a single value by...

2 minutes read.