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

Relational DBMS Concepts

What is RDBMS?

RDBMS stands for Relational Database Management System.
The relational database management system is a type of DBMS that stores information in the form of related tables and uses a relational model defined by the EF Codd.
Relational DBMS is a system that manages the relational databases. The database is called ‘relational’ because the values in each table are related to each other. A Relational database is a collection of an organized set of tables (rows and columns) from which data can be accessed easily.
Popular examples of RDBMS include Microsoft Access, SQL Server, Oracle database, MySQL and IBM DB2.

Features of RDBMS

  • It provides data to be stored in the tables in the form of rows and columns.
  • It provides the facility of primary key to uniquely identify each row in a relation.
  • It creates indexes for fast data access.
  • It provides the primary and foreign key to share a common column in more than one table.

Table

In RDBMS, a table is a collection of data elements represented in a structured format in terms of rows and columns. In a database, each table has a specific name. It is the simplest form for storing the data in the relational database management system.
Databases contain multiple tables, where each table is designed for a specific purpose.
For example, a college database may contain separate tables for students, course, and Teachers. Each table in a database may include its own set of attributes or fields, based on what type of data, the table needs to store. In tables, each field or attribute is considered as a column, while each record is considered as a row. Specific value can be retrieved from the database table by requesting data from an individual column and row.

Database: College

Table: Student

Roll no. Name City Age
101 Akhil Meerut 20
102 Chetan Delhi 22
103 Anubhav Ghaziabad 21
104 Rishabh Shivam 20

Table: Course

Course_id Course_name
C1 MCA
C2 M. tech
C3 MBA

Table: Teacher

Teacher_id Name City
201 Ankit Delhi
202 Manoj Delhi
203 Tarun Ghaziabad
204 Yash Delhi

Record

Each row in the database table is known as a record. It is also known as a tuple. A record or tuple is composed of attributes and contains the data about one particular person or an item in a database. Highlighted row for the roll no 102 in the below table Student is an example of a record.

Table: Student

Rollno Name City Age
101 Akhil Meerut 20
102 Chetan Delhi 22
103 Anubhav Ghaziabad 21
104 Rishabh Shivam 20

Field

A database table consists of several rows. Each row can be broken down into several smaller entities known as fields. It is also known as an attribute.
A field or an attribute is a column in the database table which is designed to maintain particular information about each row in the table. The above student table consists of four attributes Rollno, Name, City and Age.

Table: Student

Rollno Name City Age

Degree

The number of fields or attributes in a relation or table is known as a Degree. The above table Student has degree 4.

Cardinality

The number of tuples or records in a relation is known as its Cardinality. The above table Student has cardinality= 4.

Domain

A domain is a collection of possible values for an attribute in the database table. For example, a domain of month in a year can accept January, February, March…December as values, a domain of dates can accept all possible valid dates etc. We specify the domain of attribute while creating a table.
A field or an attribute cannot accept those values that are outside of its domains.

In the below table Student, the rollno attribute has an integer domain. Therefore, attribute, or column name or a field can accept only integer values, i.e., roll no cannot has values like10.11, ‘first’, etc.

Table: Student

Rollno Name City Age
101 Akhil Meerut 20
10.11 Chetan Delhi 22
first Anubhav Ghaziabad 21
104 Rishabh Shivam 20

What is a NULL value?

The value is unknown, or the value is not applicable for an attribute. It is represented by a blank space. It is different from the value filled with zero or a field that contains space.

Roll no. Name City Age
101 Akhil   20
102 Chetan Delhi 22
103 Anubhav   21
104 Rishabh Shivam 20