SlideShare a Scribd company logo
Introduction to Databases
Learning
Objectives
:
Why are databases needed?
Problems with the traditional file
system
How DBMS solves these problems
File System vs. DBMS with real-
world examples
Why Databases?
Understanding the
Problem with File
System
Scenario:
• A company stores employee data in Excel
files
• Works well for a startup but creates issues as
the company grows
Problems in File-Based System (Excel, CSV, Text Files)
Problem Issue
Redundancy (Duplicate Data)
Same employee's data is stored in multiple
files (e.g., "Rahul Kumar" in one file, "Rahul
K." in another) – leads to confusion
Data Consistency Issues
Salary updated in one file but not in another
– which one is correct?
Security Risk
Any user can access or delete the Excel file
accidentally
Slow Data Retrieval
Large files take time to open and search
(e.g., 1 lakh employees' data)
No Multi-User Access
Multiple users cannot edit the same file
simultaneously
Backup & Recovery Issues File corruption can result in data loss
Real-Life Example:
Imagine Flipkart storing 10 lakh users’ data in Excel – product search & orders
would take hours!
Solution – Database Management
System (DBMS)
What is a DBMS?
• A software system that helps store, retrieve, modify & secure data
efficiently
Real-Life Example:
• Facebook: Stores 1 billion users' data in a DBMS – if stored in a file
system, profile searches would take minutes
• Bank Transactions: If a file system was used, UPI balance updates
could take 10 hours! 😅
File System vs. DBMS
Feature File System DBMS
Storage Individual files (Excel, CSV) Tables inside a database
Data Redundancy High (same data in multiple files) Low (well-organized data)
Security Low (anyone can edit a file) High (user access control)
Speed Slow for large data Fast
Data Integrity
No constraints (invalid data can
be entered)
Constraints ensure valid data
(Primary Key, Foreign Key, etc.)
Multi-User Access Not possible
Multiple users can access the same
database
Real-Life Example
BANKS: ACCOUNT BALANCE
UPDATES WOULD TAKE HOURS
WITH A FILE SYSTEM
ZOMATO: SEARCHING AMONG 1
LAKH+ RESTAURANTS WOULD BE
VERY SLOW WITHOUT DBMS

More Related Content

PPTX
DATABASE SYSTEMS VS ROUTINE FILE SYSTEMS
PPTX
Db And Dbms Galvan
PPTX
File system vs database
PPTX
Presentation and architecture FDBMS Unit-1.pptx
PPTX
Database systems - 1.pptxdassdfsdf dasdas da
PDF
database system architeture and data models-1.pdf
PPTX
Introduction to DBMS(Database Management System)
DATABASE SYSTEMS VS ROUTINE FILE SYSTEMS
Db And Dbms Galvan
File system vs database
Presentation and architecture FDBMS Unit-1.pptx
Database systems - 1.pptxdassdfsdf dasdas da
database system architeture and data models-1.pdf
Introduction to DBMS(Database Management System)

Similar to Introduction to Databases for Data analytics.pptx (20)

DOCX
Database Management System Unit 1 Full Chapter.docx
PPTX
rdbms1-191014080818000000000000000000000000000000000
PPT
Files Vs DataBase
PDF
Database basics
PDF
Introduction to RDBMS
PPTX
Overview of Data Base Systems Concepts and Architecture
PPT
Ch 1 D B Environment
PPTX
Dbms mca-section a
PPTX
PPT
DBMS Lecture1.ppt
PPT
Basics of Database Management System: Key Components
PPTX
Database Management and it is definition
DOCX
Database management system
PPT
Database Systems
PPTX
A critique on traditional file system vs databases
PDF
database introductoin optimization1-app6891.pdf
PPTX
Introduction to Database
PPT
Database and Database Management (DBM): Health Informatics
PDF
A database is generally used for storing related, structured data, w.pdf
DOCX
DBMS PART 1.docx
Database Management System Unit 1 Full Chapter.docx
rdbms1-191014080818000000000000000000000000000000000
Files Vs DataBase
Database basics
Introduction to RDBMS
Overview of Data Base Systems Concepts and Architecture
Ch 1 D B Environment
Dbms mca-section a
DBMS Lecture1.ppt
Basics of Database Management System: Key Components
Database Management and it is definition
Database management system
Database Systems
A critique on traditional file system vs databases
database introductoin optimization1-app6891.pdf
Introduction to Database
Database and Database Management (DBM): Health Informatics
A database is generally used for storing related, structured data, w.pdf
DBMS PART 1.docx
Ad

Recently uploaded (20)

PPTX
STUDY DESIGN details- Lt Col Maksud (21).pptx
PPTX
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
PPTX
Database Infoormation System (DBIS).pptx
PPTX
DISORDERS OF THE LIVER, GALLBLADDER AND PANCREASE (1).pptx
PPTX
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
PPT
Quality review (1)_presentation of this 21
PPTX
AI Strategy room jwfjksfksfjsjsjsjsjfsjfsj
PPTX
Microsoft-Fabric-Unifying-Analytics-for-the-Modern-Enterprise Solution.pptx
PDF
Fluorescence-microscope_Botany_detailed content
PPT
Miokarditis (Inflamasi pada Otot Jantung)
PPTX
Supervised vs unsupervised machine learning algorithms
PPTX
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
PDF
Mega Projects Data Mega Projects Data
PPTX
1_Introduction to advance data techniques.pptx
PPTX
IB Computer Science - Internal Assessment.pptx
PPTX
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
PPTX
Acceptance and paychological effects of mandatory extra coach I classes.pptx
PDF
Clinical guidelines as a resource for EBP(1).pdf
PDF
Lecture1 pattern recognition............
STUDY DESIGN details- Lt Col Maksud (21).pptx
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
Database Infoormation System (DBIS).pptx
DISORDERS OF THE LIVER, GALLBLADDER AND PANCREASE (1).pptx
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
Quality review (1)_presentation of this 21
AI Strategy room jwfjksfksfjsjsjsjsjfsjfsj
Microsoft-Fabric-Unifying-Analytics-for-the-Modern-Enterprise Solution.pptx
Fluorescence-microscope_Botany_detailed content
Miokarditis (Inflamasi pada Otot Jantung)
Supervised vs unsupervised machine learning algorithms
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
Mega Projects Data Mega Projects Data
1_Introduction to advance data techniques.pptx
IB Computer Science - Internal Assessment.pptx
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
Acceptance and paychological effects of mandatory extra coach I classes.pptx
Clinical guidelines as a resource for EBP(1).pdf
Lecture1 pattern recognition............
Ad

Introduction to Databases for Data analytics.pptx

  • 2. Learning Objectives : Why are databases needed? Problems with the traditional file system How DBMS solves these problems File System vs. DBMS with real- world examples
  • 3. Why Databases? Understanding the Problem with File System Scenario: • A company stores employee data in Excel files • Works well for a startup but creates issues as the company grows
  • 4. Problems in File-Based System (Excel, CSV, Text Files) Problem Issue Redundancy (Duplicate Data) Same employee's data is stored in multiple files (e.g., "Rahul Kumar" in one file, "Rahul K." in another) – leads to confusion Data Consistency Issues Salary updated in one file but not in another – which one is correct? Security Risk Any user can access or delete the Excel file accidentally Slow Data Retrieval Large files take time to open and search (e.g., 1 lakh employees' data) No Multi-User Access Multiple users cannot edit the same file simultaneously Backup & Recovery Issues File corruption can result in data loss
  • 5. Real-Life Example: Imagine Flipkart storing 10 lakh users’ data in Excel – product search & orders would take hours!
  • 6. Solution – Database Management System (DBMS) What is a DBMS? • A software system that helps store, retrieve, modify & secure data efficiently Real-Life Example: • Facebook: Stores 1 billion users' data in a DBMS – if stored in a file system, profile searches would take minutes • Bank Transactions: If a file system was used, UPI balance updates could take 10 hours! 😅
  • 7. File System vs. DBMS Feature File System DBMS Storage Individual files (Excel, CSV) Tables inside a database Data Redundancy High (same data in multiple files) Low (well-organized data) Security Low (anyone can edit a file) High (user access control) Speed Slow for large data Fast Data Integrity No constraints (invalid data can be entered) Constraints ensure valid data (Primary Key, Foreign Key, etc.) Multi-User Access Not possible Multiple users can access the same database
  • 8. Real-Life Example BANKS: ACCOUNT BALANCE UPDATES WOULD TAKE HOURS WITH A FILE SYSTEM ZOMATO: SEARCHING AMONG 1 LAKH+ RESTAURANTS WOULD BE VERY SLOW WITHOUT DBMS