IT404 Unit 2
IT405 • Database Management System

DBMS Unit 1 Notes

Introduction to DBMS, Database Architecture, Data Models and E-R Model

Complete RGPV IT405 Database Management System Unit 1 notes for B.Tech Information Technology students. This unit covers Introduction to DBMS, File System vs DBMS, Advantages of Database Systems, Database System Architecture, Data Models, Schemas and Instances, Data Independence, Functions of DBA, Database Designer, Entities, Attributes, Relationships and E-R Model in easy exam-oriented Hinglish language.

📘

Detailed Notes

Read complete DBMS Unit 1 notes covering basic database concepts, DBMS architecture, data models, DBA functions and E-R model with simple examples and RGPV exam-focused explanation.

Read Notes

Important Questions

Prepare expected 7 marks and 14 marks questions from DBMS basics, File System vs DBMS, Data Independence, Database Architecture, Data Models and E-R Diagram.

View Questions
📄

PYQ Analysis

Check repeated and expected questions from DBMS Unit 1 for better RGPV exam preparation and last-minute revision.

Open Analysis

DBMS Unit 1 Syllabus Topics

Introduction to DBMS File System vs DBMS Advantages of Database Systems Database System Architecture Data Models Schemas and Instances Data Independence Functions of DBA Database Designer Entities Attributes Entity Types Key Attributes Relationships Types of Relationships E-R Model E-R Diagram Important Questions PYQ Analysis FAQs

Introduction to Database Management System (DBMS)

Database Management System (DBMS) computer science aur information technology ka ek bahut important subject hai. Aaj ke time me banking systems, railway reservation systems, online shopping websites, social media platforms, hospitals aur universities sabhi DBMS ka use karte hain.

Jab data ki quantity bahut zyada ho jati hai tab simple files me data manage karna difficult ho jata hai. Isi problem ko solve karne ke liye Database Management System use kiya jata hai.


What is Data?

Data kisi bhi fact, number, text ya information ko represent karta hai.

Examples:

Shivam 0905IT241001 85 Marks 9876543210

Ye sab individual values Data ke examples hain.


What is Information?

Processed aur meaningful data ko Information kehte hain.

Example:

Student Name : Shivam Total Marks : 450 Percentage : 90% Result : Pass

Yahaan raw data ko process karke useful information banayi gayi hai.


What is a Database?

Database related data ka organized collection hota hai jo future me easily access, manage aur update kiya ja sakta hai.

Definition

A Database is an organized collection of logically related data that can be easily accessed, managed and updated.


Real Life Examples of Database


What is DBMS?

DBMS ek software hai jo users aur database ke beech interface ka kaam karta hai.

Definition

A Database Management System (DBMS) is software that allows users to create, access, store, manage and manipulate databases efficiently.


Simple Understanding of DBMS

User ↓ DBMS ↓ Database

User directly database ke saath interact nahi karta.

User DBMS ko command deta hai aur DBMS database se required information provide karta hai.


Need of DBMS

Traditional file systems me bahut problems hoti thi. Data duplicate ho jata tha aur information manage karna difficult hota tha.

Inhi problems ko solve karne ke liye DBMS develop kiya gaya.

Main Reasons:


Characteristics of DBMS


Components of DBMS

DBMS │ ├── Hardware ├── Software ├── Data ├── Procedures ├── Database Access Language └── Users

1. Hardware

Hardware physical devices hote hain jahan database store hota hai.

Examples:


2. Software

Software database ko manage karta hai.

Examples:


3. Data

Database me stored information ko data kehte hain.


4. Procedures

Database use karne ke rules aur instructions ko procedures kehte hain.


5. Database Access Language

Users SQL commands ki help se database access karte hain.

Examples:

SELECT INSERT UPDATE DELETE

6. Users

Jo log database use karte hain unhe database users kehte hain.

Examples:


Functions of DBMS


Popular DBMS Software

DBMS Developer
MySQL Oracle Corporation
Oracle Database Oracle Corporation
SQL Server Microsoft
PostgreSQL PostgreSQL Community
MongoDB MongoDB Inc.

Advantages of DBMS


Applications of DBMS


Memory Trick for Exam

DBMS ↓ Store Manage Retrieve Protect Data

RGPV Exam Keywords


Most Expected Questions

2 Marks

5 Marks

7 Marks

14 Marks

File System vs Database Management System (DBMS)

DBMS subject ka sabse important aur frequently asked topic "File System vs DBMS" hai. RGPV exams me ye topic bahut baar 7 marks aur 14 marks ke question ke roop me poocha jata hai.


Introduction

Computer ke initial days me data ko store karne ke liye File System use kiya jata tha. Jaise-jaise data ki quantity badhne lagi, file system ki limitations saamne aane lagi. In limitations ko solve karne ke liye Database Management System (DBMS) develop kiya gaya.


What is File System?

File System ek traditional method hai jisme data alag-alag files me store kiya jata hai.

Definition

A File System is a method of storing and managing data in separate files on a storage device.


Example of File System

Student.txt ------------------- Roll No : 101 Name : Shivam Marks : 85 ------------------- Student2.txt ------------------- Roll No : 102 Name : Rahul Marks : 78

Yahaan har student ki information alag file me stored hai.


Problems of File System


What is DBMS?

DBMS ek software system hai jo database ko create, manage aur control karta hai.

Definition

A Database Management System (DBMS) is software that stores, organizes, manages and retrieves data efficiently.


DBMS Working

User ↓ DBMS ↓ Database

DBMS user aur database ke beech interface ka kaam karta hai.


Why DBMS is Better than File System?

DBMS data ko centrally manage karta hai aur file system ki almost sabhi limitations ko solve karta hai.


Comparison: File System vs DBMS

File System DBMS
Data stored in separate files Data stored in database
High data redundancy Low data redundancy
Poor data consistency High data consistency
Limited security Strong security
Difficult data retrieval Easy data retrieval
No concurrency control Concurrency control available
No backup mechanism Backup and recovery available
Difficult maintenance Easy maintenance
No data independence Supports data independence
Less efficient More efficient

Data Redundancy Example

File System me same data multiple files me repeat ho sakta hai.

Student File ↓ CSE Department ------------------- Fee File ↓ CSE Department ------------------- Result File ↓ CSE Department

Yahaan "CSE Department" baar-baar store ho raha hai.

Isse storage waste hota hai aur redundancy increase hoti hai.


Data Inconsistency Example

Agar ek file me department update kiya aur doosri file me update nahi kiya to inconsistency create ho jati hai.

File 1 Department = IT ------------------ File 2 Department = CSE

Yeh inconsistent data hai.


Real Life Example

Suppose ek college me 10,000 students hain.

Agar har student ki information alag file me store ki jaye to data manage karna bahut difficult ho jayega.

Lekin DBMS me sabhi records ek centralized database me store hote hain.

College Database ↓ Students Table ↓ Faculty Table ↓ Department Table ↓ Result Table

Advantages of DBMS over File System


Disadvantages of File System


Applications Where DBMS is Preferred


Memory Trick for Exam

File System ↓ Duplicate Data ↓ Less Security ↓ Difficult Management ------------------------- DBMS ↓ Centralized Data ↓ High Security ↓ Easy Management

Exam Shortcut Table

Feature File System DBMS
Redundancy High Low
Security Low High
Consistency Poor Good
Recovery No Yes
Concurrency No Yes

RGPV Exam Keywords


Most Expected Questions

2 Marks

5 Marks

7 Marks

14 Marks

Advantages of Database Systems

Database Management System (DBMS) ka sabse bada advantage ye hai ki ye data ko efficiently manage karta hai. Traditional file systems me bahut si problems hoti thi jaise redundancy, inconsistency aur security issues. DBMS in problems ko solve karta hai aur organizations ko reliable data management provide karta hai.


Introduction

Aaj ke digital era me data kisi bhi organization ki sabse valuable asset hoti hai. Banks, hospitals, colleges, railway systems, e-commerce websites aur social media platforms har second huge amount of data generate karte hain.

Is data ko organize, secure aur efficiently manage karne ke liye Database Systems ka use kiya jata hai.


Why Database Systems are Needed?

Traditional File Systems me kai limitations thi:

Database Systems in sabhi problems ka solution provide karte hain.


Major Advantages of Database Systems

Database System ↓ Less Redundancy ↓ Better Security ↓ Easy Access ↓ Data Sharing ↓ Backup & Recovery

1. Reduced Data Redundancy

Data Redundancy ka matlab same data ka multiple places par repeat hona hai.

File System me ek hi information baar-baar store hoti thi.

DBMS centralized database use karta hai jisse duplicate data reduce ho jata hai.

Example:

Student Database ↓ Department Stored Once ↓ No Duplicate Entries

2. Improved Data Consistency

Consistency ka matlab database me har jagah same information available hona.

DBMS update hone par related records ko synchronize karta hai.

Isse incorrect information ki possibility kam ho jati hai.


3. Better Data Security

DBMS authorized users ko hi data access karne ki permission deta hai.

Security mechanisms:

Example:

Bank database me customer account details sirf authorized employees hi access kar sakte hain.


4. Data Sharing

DBMS multiple users ko same database access karne ki facility provide karta hai.

Different users ek hi data ko simultaneously use kar sakte hain.

Example:

Sabhi college database ko access kar sakte hain according to permissions.


5. Data Integrity

Integrity ka matlab data ki accuracy aur correctness maintain karna hai.

DBMS constraints ka use karke invalid data entry ko prevent karta hai.

Example:

Age = -5 ❌ Invalid ------------------ Age = 20 ✅ Valid

6. Backup and Recovery

System failure ya hardware crash hone par data loss ho sakta hai.

DBMS backup aur recovery mechanisms provide karta hai.

Agar database corrupt ho jaye to backup se restore kiya ja sakta hai.


7. Concurrency Control

Concurrency ka matlab multiple users ka same time par database access karna.

DBMS ensure karta hai ki multiple users ke operations se data inconsistent na ho.

Example:

ATM aur Mobile Banking dono same account ko access kar rahe hain.

DBMS data consistency maintain karta hai.


8. Data Independence

DBMS me data aur application programs independent hote hain.

Database structure me changes karne par application programs ko modify karna zaroori nahi hota.

Is concept ko Data Independence kehte hain.


9. Easy Data Retrieval

DBMS SQL queries ki help se data retrieval ko bahut easy bana deta hai.

Example:

SELECT * FROM Student WHERE Marks > 80;

Ye query 80 se zyada marks wale students ko display karegi.


10. Centralized Data Management

DBMS me data centralized form me store hota hai.

Isse management aur maintenance easy ho jata hai.

Users ↓ DBMS ↓ Central Database

11. Improved Decision Making

Accurate data management organizations ko better decisions lene me help karta hai.

Reports aur analytics generate karna easy ho jata hai.


12. Reduced Development Time

DBMS ready-made tools provide karta hai jisse application development fast ho jata hai.

Developers ko data management logic separately implement nahi karna padta.


Real Life Applications

Organization Use of DBMS
Bank Customer Accounts
Hospital Patient Records
College Student Information
Railway Reservation System
Amazon Product Database
Facebook User Profiles

Summary of Advantages

Advantage Benefit
Reduced Redundancy Less Duplicate Data
Consistency Correct Information
Security Safe Data
Backup Data Recovery
Concurrency Multi User Access
Data Sharing Easy Collaboration
Integrity Accurate Data

Memory Trick for Exam

DBMS ↓ R C S B C D I ↓ Redundancy Reduced Consistency Security Backup Concurrency Data Sharing Integrity

RGPV Exam Keywords


Most Expected Questions

2 Marks

5 Marks

7 Marks

14 Marks

Database System Architecture

Database System Architecture batata hai ki users, applications aur database kis tarah interact karte hain. Architecture ka main objective database ko efficient, secure aur easy-to-manage banana hota hai.

RGPV examinations me Database Architecture se 7 marks aur 14 marks ke questions frequently pooche jate hain.


Definition

Database Architecture is the overall design of a database system that describes how users, applications and database components interact with each other.


Need of Database Architecture


Types of Database Architecture

Database Architecture │ ├── 1-Tier Architecture ├── 2-Tier Architecture └── 3-Tier Architecture

1-Tier Architecture

1-Tier Architecture sabse simple architecture hai jisme user, application aur database ek hi system me present hote hain.

User directly database ke saath interact karta hai.


1-Tier Architecture Diagram

User ↓ Database (Same System)

Examples


Advantages of 1-Tier Architecture


Disadvantages of 1-Tier Architecture


2-Tier Architecture

2-Tier Architecture ko Client-Server Architecture bhi kaha jata hai.

Is architecture me client application directly database server se connect hoti hai.


2-Tier Architecture Diagram

Client ↓ Database Server

Working


Examples


Advantages of 2-Tier Architecture


Disadvantages of 2-Tier Architecture


3-Tier Architecture

3-Tier Architecture modern database systems me sabse zyada use hoti hai.

Is architecture me client aur database ke beech ek Application Server hota hai.


3-Tier Architecture Diagram

Client ↓ Application Server ↓ Database Server

Working of 3-Tier Architecture

  1. User request client se bhejta hai.
  2. Application server request process karta hai.
  3. Database server se data retrieve hota hai.
  4. Result client ko return kiya jata hai.

Examples


Advantages of 3-Tier Architecture


Disadvantages of 3-Tier Architecture


Comparison of 1-Tier, 2-Tier and 3-Tier Architecture

Feature 1-Tier 2-Tier 3-Tier
Layers 1 2 3
Security Low Medium High
Scalability Low Medium High
Maintenance Difficult Moderate Easy
Performance Good Better Best
Cost Low Medium High

ANSI-SPARC Three Schema Architecture

Database Architecture ka ek important model ANSI-SPARC Architecture hai.

External Level ↓ Conceptual Level ↓ Internal Level

External Level

User View ko represent karta hai.

Different users database ka different view dekhte hain.


Conceptual Level

Entire database ka logical structure represent karta hai.

Ye complete database design ko define karta hai.


Internal Level

Data physically storage device par kaise store hota hai ye level batata hai.


Memory Trick for Exam

1 Tier ↓ User + DB ---------------- 2 Tier ↓ Client + DB ---------------- 3 Tier ↓ Client ↓ Application Server ↓ Database

RGPV Exam Keywords


Most Expected Questions

2 Marks

5 Marks

7 Marks

14 Marks

Data Models

Data Model DBMS ka foundation hota hai. Database me data ko kaise organize, store aur represent kiya jayega, ye Data Model decide karta hai.

Agar database ek building hai, to Data Model us building ka blueprint hai.


Definition

A Data Model is a collection of concepts used to describe the structure, relationships and constraints of data in a database.


Why Data Models are Needed?


Types of Data Models

Data Models │ ├── Hierarchical Model ├── Network Model ├── Relational Model ├── Entity Relationship Model └── Object Oriented Model

1. Hierarchical Data Model

Hierarchical Model tree structure follow karta hai.

Is model me Parent-Child relationship hoti hai.

Ek parent ke multiple children ho sakte hain lekin ek child ka sirf ek parent hota hai.


Diagram

College │ ├── CSE │ ├── Student1 │ └── Student2 │ └── IT ├── Student3 └── Student4

Advantages


Disadvantages


2. Network Data Model

Network Model Hierarchical Model ka improved version hai.

Is model me ek child ke multiple parents ho sakte hain.

Many-to-Many relationships support hoti hain.


Diagram

Teacher ↘ ↙ Student ↗ ↖ Course

Advantages


Disadvantages


3. Relational Data Model

Relational Model sabse popular aur widely used Data Model hai.

Is model ko Dr. E. F. Codd ne 1970 me introduce kiya tha.

Data tables ke form me store hota hai.


Student Table Example

Roll No Name Branch
101 Shivam CSE
102 Rahul IT

Important Terms


Advantages


Disadvantages


4. Entity Relationship (ER) Model

ER Model database design ke initial stage me use hota hai.

Ye entities aur relationships ko graphical form me represent karta hai.


ER Model Components


Simple Example

Student ↓ Studies ↓ Course

Advantages


5. Object Oriented Data Model

Object Oriented Data Model object-oriented programming concepts par based hota hai.

Data aur methods ko ek object ke andar store kiya jata hai.


Example

Student Object ------------------ Roll No Name Marks ------------------ Display() Update()

Advantages


Disadvantages


Comparison of Data Models

Model Structure Relationship
Hierarchical Tree One-to-Many
Network Graph Many-to-Many
Relational Tables Keys
ER Model Diagram Entity Relationships
Object Oriented Objects Object Links

Most Popular Data Model Today

Modern databases me Relational Data Model sabse zyada use kiya jata hai.

Examples:


Memory Trick

H ↓ Hierarchical ↓ Tree ---------------- N ↓ Network ↓ Graph ---------------- R ↓ Relational ↓ Tables ---------------- ER ↓ Diagram ---------------- OO ↓ Objects

RGPV Exam Keywords


Most Expected Questions

2 Marks

5 Marks

7 Marks

14 Marks

Schemas and Instances

Schemas and Instances DBMS ke fundamental concepts hain. Ye topic RGPV examinations me frequently poocha jata hai aur Data Independence ko samajhne ke liye bhi bahut important hai.


Introduction

Database ko samajhne ke liye hume Schema aur Instance ke beech ka difference samajhna zaroori hai.

Simple language me:


What is Schema?

Schema database ka overall design ya structure hota hai.

Ye define karta hai ki database me kaunsi tables hongi, unme kaunse attributes honge aur tables ke beech relationships kaise hongi.


Definition

A Schema is the logical design or structure of a database that defines tables, attributes, relationships and constraints.


Real Life Example of Schema

Suppose hum Student Database bana rahe hain.

Student ---------------------- Roll_No Name Branch Marks

Ye Student table ka structure hai.

Ye structure Schema kehlata hai.


Characteristics of Schema


Types of Schema

Schema │ ├── Physical Schema ├── Logical Schema └── External Schema

1. Physical Schema

Physical Schema batata hai ki data storage device par physically kaise store hoga.

Ye storage structures aur indexing ko define karta hai.

Example:


2. Logical Schema

Logical Schema database ka overall logical structure define karta hai.

Ye users aur developers ke liye most important schema hota hai.

Example:

Student ----------------- Roll_No Name Branch Marks

3. External Schema

External Schema user-specific view provide karta hai.

Different users database ka different portion dekh sakte hain.

Example:

Student View ↓ Roll_No Name Marks

Student branch information nahi dekh sakta.


What is Instance?

Instance database ke current state ko represent karta hai.

Database me kisi specific time par jo actual data stored hota hai use Instance kehte hain.


Definition

An Instance is the collection of actual data stored in the database at a particular moment of time.


Example of Instance

Roll No Name Branch Marks
101 Shivam CSE 85
102 Rahul IT 78

Ye actual stored data Instance kehlata hai.


Characteristics of Instance


Schema vs Instance

Schema Instance
Database Structure Actual Data
Rarely Changes Frequently Changes
Blueprint Snapshot
Static Dynamic
Defined at Design Time Changes During Operation

Easy Example

Consider a College Database.

Schema ↓ Student Table Faculty Table Department Table

Instance ↓ Student 101 Student 102 Student 103

Tables ka structure Schema hai aur students ka actual data Instance hai.


Relation Between Schema and Instance

Schema database ka design hota hai aur Instance us design ke according stored data hota hai.

Schema ↓ Defines Structure ↓ Instance ↓ Stores Data

Database State and Database Schema

Database State aur Database Instance same concepts hain.

Database State continuously change hoti rehti hai.

Database Schema usually stable rehta hai.


Real Life Analogy

Building Blueprint ↓ Schema ---------------------- Actual Building ↓ Instance

Blueprint structure define karta hai aur building actual implementation hoti hai.


Advantages of Using Schema


Memory Trick

Schema ↓ Structure ↓ Static -------------------- Instance ↓ Information ↓ Changes

Exam Shortcut

Concept Remember
Schema Blueprint
Instance Current Data
Schema Static
Instance Dynamic

RGPV Exam Keywords


Most Expected Questions

2 Marks

5 Marks

7 Marks

14 Marks

Data Independence

Data Independence DBMS ka ek bahut important feature hai. Ye database structure me changes karne ki freedom provide karta hai bina application programs ko affect kiye.

RGPV exams me Data Independence frequently 5 marks, 7 marks aur 14 marks ke questions me poocha jata hai.


Introduction

Traditional File Systems me agar database structure change hota tha to application programs ko bhi modify karna padta tha.

DBMS ne is problem ko solve kiya aur Data Independence concept introduce kiya.


Definition

Data Independence is the ability to modify the database schema at one level without affecting the schema at the next higher level.


Why Data Independence is Needed?


Basic Concept

Data Independence ka main objective ye hai ki database me changes karne par users aur application programs par minimum effect pade.

Database Changes ↓ Application Programs Not Affected

Types of Data Independence

Data Independence │ ├── Physical Data Independence └── Logical Data Independence

1. Physical Data Independence

Physical Data Independence ka matlab hai physical storage structure me changes karna bina logical schema ko affect kiye.


Definition

Physical Data Independence is the ability to change the internal schema without affecting the conceptual schema.


Example

Suppose database pehle hard disk me store tha aur baad me SSD par move kar diya gaya.

Application program ko koi modification nahi karna padega.

Old Storage ↓ Hard Disk ----------------- New Storage ↓ SSD

User ko koi difference nahi dikhega.


Physical Changes Examples


Advantages


2. Logical Data Independence

Logical Data Independence ka matlab hai conceptual schema me changes karna bina external schema ko affect kiye.


Definition

Logical Data Independence is the ability to change the conceptual schema without affecting external schemas or application programs.


Example

Suppose Student table me ek naya attribute add kiya gaya.

Old Table ↓ Roll_No Name Branch ------------------ New Table ↓ Roll_No Name Branch Email

Existing applications normally continue working.


Logical Changes Examples


Advantages


Physical vs Logical Data Independence

Physical Data Independence Logical Data Independence
Changes Internal Schema Changes Conceptual Schema
Easier to Achieve Difficult to Achieve
Affects Storage Level Affects Logical Structure
No Effect on Conceptual Schema No Effect on External Schema
Performance Related Changes Design Related Changes

Three Schema Architecture and Data Independence

External Level ↓ Conceptual Level ↓ Internal Level

Logical Data Independence

External Level ↓ Conceptual Level (Change Allowed)

Physical Data Independence

Conceptual Level ↓ Internal Level (Change Allowed)

Why Physical Data Independence is Easier?

Physical storage changes users ko directly visible nahi hote.

Isliye Physical Data Independence achieve karna easier hota hai.


Why Logical Data Independence is Difficult?

Logical schema changes directly application programs ko affect kar sakte hain.

Isliye Logical Data Independence maintain karna comparatively difficult hota hai.


Real Life Example

Suppose College Database me Student table hai.

Student ↓ Roll_No Name Branch

Baad me Email column add kar diya gaya.

Student ↓ Roll_No Name Branch Email

Ye Logical Data Independence ka example hai.


Benefits of Data Independence


Memory Trick

Physical ↓ Storage Change ↓ Easy -------------------- Logical ↓ Structure Change ↓ Difficult

Exam Shortcut

Type Remember
Physical Storage Level
Logical Structure Level
Physical Easier
Logical Difficult

RGPV Exam Keywords


Most Expected Questions

2 Marks

5 Marks

7 Marks

14 Marks

Database Administrator (DBA)

Database Administrator (DBA) database system ka sabse important person hota hai. DBA database ko manage, secure aur maintain karta hai.

Large organizations jaise banks, hospitals, universities aur e-commerce companies me database ki responsibility DBA ke paas hoti hai.


Definition

A Database Administrator (DBA) is a person responsible for managing, maintaining, securing and controlling a database system.


Role of DBA

Users ↓ DBA ↓ Database

DBA database aur users ke beech controller ki tarah kaam karta hai.


Why DBA is Needed?


Functions of DBA

DBA Functions │ ├── Database Design ├── Security Management ├── Backup & Recovery ├── User Management ├── Performance Tuning ├── Storage Management └── Concurrency Control

1. Database Design

DBA database structure design karta hai.

Tables, relationships aur constraints define karta hai.

Example:

Student Table Faculty Table Course Table

2. Security Management

DBA database ko unauthorized access se protect karta hai.

Security techniques:


3. Backup and Recovery

System crash ya hardware failure hone par DBA backup restore karta hai.

Database ↓ Backup ↓ Recovery

4. User Management

DBA database users create karta hai aur permissions assign karta hai.

Examples:


5. Performance Monitoring

DBA database performance monitor karta hai.

Slow queries aur bottlenecks identify karke optimize karta hai.


6. Storage Management

DBA storage allocation aur memory utilization manage karta hai.

Database growth ko handle karne ke liye planning karta hai.


7. Data Integrity Maintenance

DBA ensure karta hai ki database me accurate aur valid data hi store ho.

Constraints aur validation rules apply kiye jate hain.


8. Concurrency Control

Multiple users same time par database access kar sakte hain.

DBA concurrency control mechanisms implement karta hai.


9. Database Recovery

Unexpected failures ke baad database ko previous stable state me restore karna DBA ki responsibility hoti hai.


10. Software Installation and Upgrades

DBA DBMS software install aur update karta hai.

Security patches aur new versions implement karta hai.


Characteristics of a Good DBA


Database Designer

Database Designer wo person hota hai jo database ka structure design karta hai.

Database implementation se pehle Database Designer database ka blueprint prepare karta hai.


Definition

A Database Designer is a person responsible for designing the logical and conceptual structure of a database.


Role of Database Designer

Requirements ↓ Database Designer ↓ Database Schema ↓ Implementation

Responsibilities of Database Designer


Example

Suppose College Management System design karna hai.

Database Designer identify karega:


Database Designer vs DBA

Database Designer DBA
Designs Database Manages Database
Works Before Implementation Works After Implementation
Creates Schema Maintains Schema
Focus on Structure Focus on Operations
Creates ER Diagrams Handles Security & Backup

Real Life Example

Architect ↓ Designs Building ---------------------- Database Designer ↓ Designs Database

Building Manager ↓ Maintains Building ---------------------- DBA ↓ Maintains Database

Advantages of Having DBA


Memory Trick

Designer ↓ Design ---------------- DBA ↓ Manage Protect Recover Optimize

RGPV Exam Keywords


Most Expected Questions

2 Marks

5 Marks

7 Marks

14 Marks

Entities and Attributes

Entities aur Attributes E-R Model ke basic building blocks hain. Database design start karne se pehle entities aur unke attributes identify karna bahut important hota hai.

RGPV examinations me ye topic frequently 5 marks, 7 marks aur 14 marks ke questions me poocha jata hai.


What is an Entity?

Entity koi bhi real-world object, person, place, event ya thing ho sakti hai jiske baare me information store karni ho.


Definition

An Entity is a real-world object or concept that can be uniquely identified and about which data can be stored.


Examples of Entities


Real Life Example

College Database ↓ Student Faculty Course Department

Yahaan Student, Faculty, Course aur Department entities hain.


What are Attributes?

Entity ki properties ya characteristics ko Attributes kehte hain.


Definition

An Attribute is a property or characteristic that describes an entity.


Example

Entity ↓ Student -------------------- Attributes ↓ Roll Number Name Branch Semester Marks

Student Entity Example

Entity Attributes
Student Roll No, Name, Branch, Marks

Types of Attributes

Attributes │ ├── Simple Attribute ├── Composite Attribute ├── Single Valued Attribute ├── Multi Valued Attribute ├── Derived Attribute └── Key Attribute

1. Simple Attribute

Jo attribute further divide nahi kiya ja sakta use Simple Attribute kehte hain.

Example:

Age Gender Salary

2. Composite Attribute

Jo attribute multiple sub-parts me divide ho sakta hai use Composite Attribute kehte hain.

Example:

Name ↓ First Name Middle Name Last Name

3. Single Valued Attribute

Jis attribute ki ek hi value hoti hai use Single Valued Attribute kehte hain.

Example:

Roll Number Age Blood Group

4. Multi Valued Attribute

Jis attribute ki multiple values ho sakti hain use Multi Valued Attribute kehte hain.

Example:

Phone Number ↓ 9876543210 9876501234

5. Derived Attribute

Jo attribute kisi doosre attribute se calculate kiya jata hai use Derived Attribute kehte hain.

Example:

Date of Birth ↓ Age

Age directly store nahi ki jati, DOB se calculate ki jati hai.


Entity Types

Same type ki entities ka collection Entity Type kehlata hai.


Definition

An Entity Type is a collection of similar entities having the same attributes.


Example

Student Entity Type ↓ Student1 Student2 Student3 Student4

Types of Entity

Entities │ ├── Strong Entity └── Weak Entity

Strong Entity

Strong Entity apne key attribute ki help se uniquely identify ho sakti hai.

Example:

Student ↓ Roll Number

Roll Number uniquely identify karta hai.


Weak Entity

Weak Entity ke paas apna key attribute nahi hota.

Ye kisi Strong Entity par depend karti hai.

Example:

Employee ↓ Dependent

Dependent ko Employee ke bina identify nahi kiya ja sakta.


Key Attributes

Key Attribute wo attribute hota hai jo har entity ko uniquely identify karta hai.


Definition

A Key Attribute is an attribute whose value uniquely identifies an entity in an entity set.


Example

Student ↓ Roll Number Name Branch

Yahaan Roll Number Key Attribute hai.


Why Key Attribute is Important?


Example Table

Roll No Name Branch
101 Shivam CSE
102 Rahul IT

Roll Number uniquely identify kar raha hai har student ko.


Entity vs Attribute

Entity Attribute
Real World Object Property of Entity
Student Name
Employee Salary
Book Title

Strong Entity vs Weak Entity

Strong Entity Weak Entity
Has Primary Key No Primary Key
Independent Dependent
Can Exist Alone Cannot Exist Alone
Example: Student Example: Dependent

Memory Trick

Entity ↓ Object ------------------ Attribute ↓ Property ------------------ Key Attribute ↓ Unique Identifier

RGPV Exam Keywords


Most Expected Questions

2 Marks

5 Marks

7 Marks

14 Marks

Relationships

Database me entities akeli exist nahi karti. Real-world me entities ek dusre se connected hoti hain. In connections ko Relationship kehte hain.

RGPV examinations me Relationships aur E-R Model sabse important topics me se ek hain aur frequently 7 marks aur 14 marks me pooche jate hain.


Definition

A Relationship is an association among two or more entities.


Example of Relationship

Student ↓ Studies ↓ Course

Yahaan Student aur Course entities hain aur "Studies" relationship hai.


Why Relationships are Important?


Types of Relationships

Relationships │ ├── One-to-One (1:1) ├── One-to-Many (1:M) └── Many-to-Many (M:N)

1. One-to-One Relationship (1:1)

Jab ek entity ka sirf ek related entity se relation ho aur vice-versa, to use One-to-One Relationship kehte hain.


Example

Person 1 ↓ Has ↓ 1 Passport

Ek person ka ek passport hota hai aur ek passport ek hi person ka hota hai.


2. One-to-Many Relationship (1:M)

Jab ek entity multiple entities se related ho sakti hai lekin second entity sirf ek entity se related ho, to use One-to-Many Relationship kehte hain.


Example

Department 1 ↓ Contains ↓ M Students

Ek department me bahut students ho sakte hain, lekin ek student ek hi department me hota hai.


3. Many-to-Many Relationship (M:N)

Jab dono entities multiple entities se related ho sakti hain, to use Many-to-Many Relationship kehte hain.


Example

Students M ↓ Enroll ↓ N Courses

Ek student multiple courses le sakta hai aur ek course me multiple students ho sakte hain.


Relationship Degree

Relationship me participate karne wali entities ki number ko Degree of Relationship kehte hain.


Unary Relationship

Same entity khud se relationship banaye.

Employee ↓ Manages ↓ Employee

Binary Relationship

Do entities participate karti hain.

Student ↓ Studies ↓ Course

Ternary Relationship

Teen entities participate karti hain.

Student ↓ Project ↓ Guide

Entity Relationship (E-R) Model

E-R Model DBMS ka conceptual data model hai jo database design ke initial stage me use hota hai.

Is model ko Peter Chen ne 1976 me introduce kiya tha.


Definition

Entity Relationship Model is a conceptual model used to represent entities, attributes and relationships in a database.


Components of ER Model

ER Model │ ├── Entity ├── Attribute └── Relationship

1. Entity

Real world object jiske baare me information store karni ho.

Examples:


2. Attribute

Entity ki properties ko Attribute kehte hain.

Example:

Student ↓ Roll No Name Branch

3. Relationship

Entities ke beech association ko Relationship kehte hain.


Advantages of ER Model


Limitations of ER Model


E-R Diagram

ER Model ko graphical form me represent karne ke liye E-R Diagram use kiya jata hai.


ER Diagram Symbols

Symbol Meaning
Rectangle Entity
Ellipse Attribute
Diamond Relationship
Double Rectangle Weak Entity
Double Ellipse Multivalued Attribute

Simple ER Diagram Example

(Roll No) | | [Student] | | [Course] | (Course ID)

College Database ER Diagram

(Dept ID) | [Department] | | [Student] / \ (Name) (Roll No)

Strong Entity in ER Diagram

[Student] ↓ Roll No

Student strong entity hai kyunki Roll Number se uniquely identify ho sakta hai.


Weak Entity in ER Diagram

[[Dependent]]

Weak entity apni identification ke liye strong entity par depend karti hai.


ER Model vs Relational Model

ER Model Relational Model
Conceptual Design Implementation Model
Uses Diagrams Uses Tables
Easy Visualization Easy Storage
Design Phase Implementation Phase

Memory Trick

Rectangle ↓ Entity ----------------- Ellipse ↓ Attribute ----------------- Diamond ↓ Relationship

Exam Shortcut

Relationship Type Example
1:1 Person - Passport
1:M Department - Students
M:N Students - Courses

RGPV Exam Keywords


Most Expected Questions

2 Marks

5 Marks

7 Marks

14 Marks

DBMS Unit 1 Important Questions

The following questions are selected based on RGPV previous year papers, repeated examination trends and expected topics for upcoming examinations.


🔥 Top 10 Important 7 Marks Questions

Explain Database Management System (DBMS) with characteristics and applications.
Differentiate File System and DBMS.
Explain advantages of Database Systems.
Explain Database Architecture with diagram.
Explain various Data Models used in DBMS.
Differentiate Schema and Instance.
Explain Data Independence with examples.
Explain functions of DBA.
Explain different types of Attributes.
Explain ER Model with suitable example.

🏆 Top 10 Important 14 Marks Questions

Explain DBMS in detail with characteristics, components, advantages and applications.
Differentiate File System and DBMS with suitable examples and comparison table.
Explain Database Architecture in detail with 1-Tier, 2-Tier and 3-Tier Architecture.
Explain various Data Models with advantages and disadvantages.
Explain Schema and Instance with suitable examples and comparison.
Explain Data Independence and its types with examples.
Explain the role and functions of Database Administrator (DBA).
Explain Entities, Attributes, Entity Types and Key Attributes.
Explain Relationships and Types of Relationships with examples.
Explain ER Model and ER Diagram with suitable example.

DBMS Unit 1 PYQ Analysis

The following analysis is based on RGPV Previous Year Question Papers (2020, 2022, 2023 and 2025). These topics have appeared repeatedly in university examinations and are highly important for upcoming exams.


Topics Covered

Introduction to DBMS
File System vs DBMS
Database Architecture
Data Models
Schema & Instance
Data Independence
DBA Functions
Entities & Attributes
E-R Model
E-R Diagram
Weak Entity
Specialization & Generalization
Keys

PYQ Frequency Analysis

Topic 2020 2022 2023 2025 Frequency
File System vs DBMS ★★★★★
E-R Diagram ★★★★★
Weak Entity ★★★★☆
Generalization & Specialization ★★★★★
Keys ★★★★☆
Data Independence ★★★★☆
Database Architecture ★★★★☆
DBA Functions ★★★☆☆
Data Abstraction ★★★★☆

Most Repeated Unit 1 Questions

🔥 Q1. Differentiate between File System and DBMS

Appeared In:

Prediction: ⭐⭐⭐⭐⭐


🔥 Q2. Explain Generalization and Specialization with Example

Appeared In:

Prediction: ⭐⭐⭐⭐⭐


🔥 Q3. Draw and Explain E-R Diagram

Appeared In:

Prediction: ⭐⭐⭐⭐⭐


🔥 Q4. Explain Weak Entity Set with Example

Appeared In:

Prediction: ⭐⭐⭐⭐⭐


🔥 Q5. Explain Data Independence

Appeared In:

Prediction: ⭐⭐⭐⭐☆


2026 Expected Questions

VERY HIGH PROBABILITY 🔥 File System vs DBMS 🔥 E-R Diagram 🔥 Weak Entity 🔥 Generalization & Specialization 🔥 Data Independence -------------------------------- HIGH PROBABILITY ⭐ Keys ⭐ Data Models ⭐ DBA Functions ⭐ Schema vs Instance ⭐ Database Architecture

Unit 1 Weightage Analysis

Topic Importance
File System vs DBMS ★★★★★
E-R Diagram ★★★★★
Weak Entity ★★★★★
Generalization & Specialization ★★★★★
Data Independence ★★★★☆
Keys ★★★★☆
Data Models ★★★★☆

2026 Score Booster Topics

✓ File System vs DBMS ✓ E-R Diagram ✓ Weak Entity ✓ Generalization & Specialization ✓ Data Independence ✓ Keys ✓ Data Models

If you prepare these topics properly, you can cover approximately 70-80% of the repeated RGPV Unit 1 question pattern.

Frequently Asked Questions (FAQs)


What is DBMS?

DBMS (Database Management System) is software used to create, store, manage and retrieve data efficiently from a database.


What is the difference between File System and DBMS?

File System stores data in separate files while DBMS stores data in a centralized database and provides security, consistency and redundancy control.


What is a Data Model?

A Data Model defines how data is organized, stored and related inside a database.


What is Schema?

Schema is the logical structure or blueprint of a database.


What is Instance?

Instance is the actual data stored in the database at a specific point of time.


What is Data Independence?

Data Independence is the ability to modify database structure without affecting application programs.


Who is a DBA?

DBA (Database Administrator) is responsible for managing, securing, maintaining and controlling databases.


What is an Entity?

An Entity is a real-world object about which information is stored in a database.


What is an Attribute?

An Attribute is a property or characteristic of an entity.


What is ER Model?

ER Model is a conceptual model used to represent entities, attributes and relationships in a database.

DBMS Unit 1 Quick Revision Sheet

DBMS ↓ Stores Manages Retrieves Protects Data -------------------------------- File System ↓ Separate Files High Redundancy Low Security -------------------------------- DBMS ↓ Centralized Database Low Redundancy High Security -------------------------------- Data Models ↓ Hierarchical Network Relational ER Model Object Oriented -------------------------------- Schema ↓ Blueprint Static -------------------------------- Instance ↓ Actual Data Dynamic -------------------------------- Data Independence ↓ Physical Logical -------------------------------- DBA ↓ Security Backup Recovery Users Performance -------------------------------- ER Model ↓ Entity Attribute Relationship

Last Minute Exam Revision

Topic Priority
File System vs DBMS ★★★★★
Data Independence ★★★★★
Database Architecture ★★★★★
ER Model & ER Diagram ★★★★★
Data Models ★★★★★
Functions of DBA ★★★★☆
Schema & Instance ★★★★☆
Relationships ★★★★☆

Most Important Definitions for Exam

Database ↓ Organized Collection of Data -------------------------------- DBMS ↓ Software to Manage Databases -------------------------------- Schema ↓ Logical Structure of Database -------------------------------- Instance ↓ Current State of Database -------------------------------- Entity ↓ Real World Object -------------------------------- Attribute ↓ Property of Entity -------------------------------- Relationship ↓ Association Among Entities -------------------------------- Data Independence ↓ Change Database Structure Without Affecting Programs

Related DBMS Units

DBMS Unit 2 DBMS Unit 3 DBMS Unit 4 DBMS Unit 5

Conclusion

DBMS Unit 1 provides the foundation of Database Management Systems. In this unit we studied Database Concepts, File System vs DBMS, Database Architecture, Data Models, Schema & Instance, Data Independence, Functions of DBA, Entities, Attributes, Relationships and ER Model.

These topics are extremely important because all advanced DBMS concepts such as SQL, Normalization, Transactions and Concurrency Control are built on these fundamentals.

🏆 UNIT 1 SCORE BOOSTER Must Prepare: ✓ File System vs DBMS ✓ Database Architecture ✓ Data Models ✓ Data Independence ✓ ER Model ✓ ER Diagram These topics cover most of the repeatedly asked RGPV examination questions.