DBMS Concepts

DBMS Tutorial Components of DBMS. Applications of DBMS The difference between file system and DBMS. Types of DBMS DBMS Architecture DBMS Schema Three Schema Architecture. DBMS Languages.

DBMS ER Model

ER model: Entity Relationship Diagram (ERD) Components of ER Model. DBMS Generalization, Specialization and Aggregation.

DBMS Relational Model

Codd’s rule of DBMS Relational DBMS concepts Relational Integrity Constraints DBMS keys Convert ER model into Relational model Difference between DBMS and RDBMS Relational Algebra DBMS Joins

DBMS Normalization

Functional Dependency Inference Rules Multivalued Dependency Normalization in DBMS: 1NF, 2NF, 3NF, BCNF and 4NF

DBMS Transaction

What is Transaction? States of transaction ACID Properties in DBMS Concurrent execution and its problems DBMS schedule DBMS Serializability Conflict Serializability View Serializability Deadlock in DBMS Concurrency control Protocols

Difference

Difference between DFD and ERD

Misc

Advantages of DBMS Disadvantages of DBMS Data Models in DBMS Relational Algebra in DBMS Cardinality in DBMS Entity in DBMS Attributes in DBMS Data Independence in DBMS Primary Key in DBMS Foreign Key in DBMS Candidate Key in DBMS Super Key in DBMS Aggregation in DBMS Hashing in DBMS Generalization in DBMS Specialization in DBMS View in DBMS File Organization in DBMS What Is A Cloud Database What Is A Database Levels Of Locking In DBMS What is RDBMS Fragmentation in Distributed DBMS What is Advanced Database Management System Data Abstraction in DBMS Checkpoint In DBMS B Tree in DBMS BCNF in DBMS Advantages of Threaded Binary Tree in DBMS Advantages of Database Management System in DBMS Enforcing Integrity Constraints in DBMS B-Tree Insertion in DBMS B+ Tree in DBMS Advantages of B-Tree in DBMS Types of Data Abstraction in DBMS Levels of Abstraction in DBMS 3- Tier Architecture in DBMS Anomalies in Database Management System Atomicity in Database Management System Characteristics of DBMS DBMS Examples Difference between Relational and Non-Relational Databases Domain Constraints in DBMS Entity and Entity set in DBMS ER Diagram for Banking System in DBMS ER Diagram for Company Database in DBMS ER Diagram for School Management System in DBMS ER Diagram for Student Management System in DBMS ER Diagram for University Database in DBMS ER Diagram of Company Database in DBMS Er Diagram Symbols and Notations in DBMS How to draw ER-Diagram in DBMS Integrity Constraints in DBMS Red-Black Tree Deletion in DBMS Red-Black Tree Properties in DBMS Red-Black Tree Visualization in DBMS Redundancy in Database Management System Secondary Key in DBMS Structure of DBMS 2-Tier Architecture in DBMS Advantages and Disadvantages of Binary Search Tree Closure of Functional Dependency in DBMS Consistency in Database Management System Durability in Database Management System ER Diagram for Bank Management System in DBMS ER Diagram for College Management System in DBMS ER Diagram for Hotel Management System in DBMS ER Diagram for Online Shopping ER Diagram for Railway Reservation System ER Diagram for Student Management System in DBMS Isolation in DBMS Lossless Join and Dependency Preserving Decomposition in DBMS Non-Key Attributes in DBMS Data Security Requirements in DBMS DBMS functions and Components What is Homogeneous Database? DBMS Functions and Components Advantages and Disadvantages of Distributed Database Relational Database Schema in DBMS Relational Schema Transaction Processing in DBMS Discriminator in DBMS

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.