SlideShare a Scribd company logo
Lecture 1 File Systems and Databases
In this lecture, you will learn: What a database is, what it does, and why database design is important How modern databases evolved from files and file systems About flaws in file system data management What a DBMS is, what it does, and how it fits into the database system About types of database systems and database models
Introducing the Database Data versus Information Data constitute building blocks of information Information produced by processing data Information reveals meaning of data Good, timely, relevant information key to decision making Good decision making key to organizational survival
Database Management Database is shared, integrated computer structure housing: End user data Metadata Database Management System (DBMS) Manages Database structure Controls access to data Contains query language
Importance of DBMS Makes data management more efficient and effective Query language allows quick answers to  ad hoc  queries Provides better access to more and better-managed data Promotes integrated view of organization’s operations  Reduces the probability of inconsistent data
DBMS Manages Interaction Figure 1.2
Database Design Importance of Good Design Poor design results in unwanted data redundancy Poor design generates errors leading to bad decisions Practical Approach Focus on principles and concepts of database design Importance of logical design
Historical Roots of Database First applications focused on clerical tasks Requests for information quickly followed File systems developed to address needs Data organized according to expected use Data Processing (DP) specialists computerized manual file systems
Different Terminology in Database Salary Table Name  (File) Field  (Data item) Record Data End User Data Meta Data Sr. No. Name Basic DA HRA Total 1. Mayank 10,000 2500 100 12600 2. Hiten 12,000 2000 200 14200 3. Ram 15,000 4000 100 19100
File Terminology Data  Raw Facts Field Group of characters with specific meaning Record Logically connected fields that describe a person, place, or thing File Collection of related records
Simple File System Figure 1.5
File System Critique File System Data Management Requires extensive programming in third-generation language (3GL) Time consuming Makes ad hoc queries impossible Leads to islands of information
File System Critique (con’t.) Data Dependence Change  in file’s data characteristics requires modification of data access programs Must tell program what to do and how Makes file systems cumbersome from programming and data management views Structural Dependence Change in file structure requires modification of related programs
File System Critique (con’t.) Field Definitions and Naming Conventions Flexible record definition anticipates reporting requirements Selection of proper field names important Attention to length of field names Use of unique record identifiers
File System Critique (con’t.) Data Redundancy Different and conflicting versions of same data Results of uncontrolled data redundancy Data anomalies Modification Insertion Deletion Data inconsistency Lack of data integrity
Database Systems Database consists of logically related data stored in a single repository Provides advantages over file system management approach Eliminates inconsistency, data anomalies, data dependency, and structural dependency problems Stores data structures, relationships, and access paths
Database vs. File Systems Figure 1.6
Database  System   Environment Figure 1.7
Database System Types Single-user vs. Multiuser Database Desktop Workgroup Enterprise Centralized vs. Distributed Use Production or transactional Decision support or data warehouse
DBMS Functions Data dictionary management Data storage management Data transformation and presentation Security management Multiuser access control Backup and recovery management Data integrity management Database language and application  programming interfaces  Database communication interfaces
Database Models Collection of logical constructs used to represent data structure and relationships within the database Conceptual models: logical nature of data representation Implementation models: emphasis on how the data are represented in the database
Relationships in Conceptual Models One-to-one (1:1) One-to-many (1:M) Many-to-many (M:N) Implementation Database Models Hierarchical  Network  Relational  Database Models (con’t.)
Hierarchical Database Model Logically represented by an upside down tree Each parent can have many children Each child has only one parent Figure 1.8
Hierarchical Database Model Advantages Conceptual simplicity Database security and integrity Data independence Efficiency Disadvantages Complex implementation Difficult to manage and lack of standards Lacks structural independence Applications programming and use complexity Implementation limitations
Network Database Model Each record can have multiple parents Composed of sets Each set has owner record and member record Member may have several owners Figure 1.10
Network Database Model Advantages Conceptual simplicity Handles more relationship types Data access flexibility Promotes database integrity Data independence Conformance to standards Disadvantages System complexity Lack of structural independence
Relational Database Model Perceived by user as a collection of tables for data storage Tables are a series of row/column intersections Tables related by sharing common entity characteristic(s)
Relational Database Model (con’t.) Figure 1.11
Relational Database Model Advantages Structural independence Improved conceptual simplicity Easier database design, implementation, management, and use  Ad hoc query capability with SQL Powerful database management system
Relational Database Model Disadvantages Substantial hardware and system software overhead Poor design and implementation is made easy May promote “islands of information” problems
Entity Relationship Database Model Complements the relational data model concepts Represented in an entity relationship diagram (ERD) Based on entities, attributes, and relationships Figure 1.13
Entity Relationship Database Model Advantages Exceptional conceptual simplicity Visual representation Effective communication tool Integrated with the relational database model Disadvantages Limited constraint representation Limited relationship representation No data manipulation language Loss of information content
Object-Oriented Database Model Objects or abstractions of real-world entities are stored  Attributes describe properties Collection of similar objects is a class Methods represent real world actions of classes Classes are organized in a class hierarchy Inheritance is ability of object to inherit attributes and methods of classes above it
OO Data Model Advantages Adds semantic content Visual presentation includes semantic content Database integrity Both structural and data independence Disadvantages Lack of OODM Complex navigational data access Steep learning curve High system overhead slows transactions
Database Models and the Internet Characteristics of “Internet age” databases Flexible, efficient, and secure Internet access Easily used, developed, and supported Supports complex data types and relationships Seamless interfaces with multiple data sources and structures Simplicity of conceptual database model  Many database design, implementation, and application development tools Powerful DBMS GUI make DBA job easier

More Related Content

What's hot (20)

PPT
1. Introduction to DBMS
koolkampus
 
PPTX
Introduction to database & sql
zahid6
 
PPTX
Database Management System
Nishant Munjal
 
PPTX
Relational Database Design
Archit Saxena
 
PPT
Basic DBMS ppt
dangwalrajendra888
 
PPTX
Type of database models
SanthiNivas
 
PPTX
Database system environment ppt.
yhen06
 
PDF
2 database system concepts and architecture
Kumar
 
PPT
Data dictionary
Surbhi Panhalkar
 
PPTX
Chapter-1 Introduction to Database Management Systems
Kunal Anand
 
ODP
ER Model in DBMS
Kabindra Koirala
 
PPT
Database Management System Introduction
Smriti Jain
 
PPT
Data Base Management System
Dr. C.V. Suresh Babu
 
PDF
Database Normalization
Arun Sharma
 
PPTX
Presentation on Database management system
Prerana Bhattarai
 
PPT
Database Presentation
a9oolq8
 
PPTX
Relational model
Dabbal Singh Mahara
 
PPTX
Dbms slides
rahulrathore725
 
PPT
Data Models.ppt
AnshikaGoel42
 
PPT
11 Database Concepts
Praveen M Jigajinni
 
1. Introduction to DBMS
koolkampus
 
Introduction to database & sql
zahid6
 
Database Management System
Nishant Munjal
 
Relational Database Design
Archit Saxena
 
Basic DBMS ppt
dangwalrajendra888
 
Type of database models
SanthiNivas
 
Database system environment ppt.
yhen06
 
2 database system concepts and architecture
Kumar
 
Data dictionary
Surbhi Panhalkar
 
Chapter-1 Introduction to Database Management Systems
Kunal Anand
 
ER Model in DBMS
Kabindra Koirala
 
Database Management System Introduction
Smriti Jain
 
Data Base Management System
Dr. C.V. Suresh Babu
 
Database Normalization
Arun Sharma
 
Presentation on Database management system
Prerana Bhattarai
 
Database Presentation
a9oolq8
 
Relational model
Dabbal Singh Mahara
 
Dbms slides
rahulrathore725
 
Data Models.ppt
AnshikaGoel42
 
11 Database Concepts
Praveen M Jigajinni
 

Viewers also liked (20)

PPS
Database Design Slide 1
ahfiki
 
PPTX
Introduction to database
Pongsakorn U-chupala
 
PPTX
System Development Life Cycle (SDLC)
fentrekin
 
PPTX
Database management system
Faizan Shabbir
 
PPTX
Database Management System
NILESH UCHCHASARE
 
PPT
Database Management system
Vijay Thorat
 
PPT
File system-and-database-chapter01-connoly
Temma Tems
 
PPTX
Kotler Keller - Marketing Management 15th edition, Chapter 01
Korea Institute of Marketing Education
 
PPTX
Database planning
Umair Shakir
 
PPT
Chapter 2 database environment
>. <
 
PDF
File Processing System
DMMMSU-SLUC
 
PPTX
Dbms role advantages
jeancly
 
PPTX
Advantages of DBMS
harshith singh
 
PPT
data resource management
soodsurbhi123
 
PPTX
Role of Database Management in Information Systems
waQas ilYas
 
PPTX
Disadvantages of file management system (file processing systems)
raj upadhyay
 
DOCX
Advantages of database management system
Nafeesa Naeem
 
PPT
DBMS
akshaythusoo
 
PPTX
Dbms ppt
Chinnu Shimna
 
Database Design Slide 1
ahfiki
 
Introduction to database
Pongsakorn U-chupala
 
System Development Life Cycle (SDLC)
fentrekin
 
Database management system
Faizan Shabbir
 
Database Management System
NILESH UCHCHASARE
 
Database Management system
Vijay Thorat
 
File system-and-database-chapter01-connoly
Temma Tems
 
Kotler Keller - Marketing Management 15th edition, Chapter 01
Korea Institute of Marketing Education
 
Database planning
Umair Shakir
 
Chapter 2 database environment
>. <
 
File Processing System
DMMMSU-SLUC
 
Dbms role advantages
jeancly
 
Advantages of DBMS
harshith singh
 
data resource management
soodsurbhi123
 
Role of Database Management in Information Systems
waQas ilYas
 
Disadvantages of file management system (file processing systems)
raj upadhyay
 
Advantages of database management system
Nafeesa Naeem
 
Dbms ppt
Chinnu Shimna
 
Ad

Similar to Lecture 01 introduction to database (20)

PPT
data base manage ment
kaleemullah125
 
PPTX
Database overview
Sayem Khan
 
PDF
ppt_rdbms.pdfuvuguvuvugycycyctcucuvyvvuvuvy
vk5985399
 
POTX
database
Shwetanshu Gupta
 
PPTX
INTRODUCTION TO DATABASE-SYSTEMS PRESENTATION.pptx
renadmajid789
 
PPTX
dbms lecture 1.pptx , where traditional file system vs database management ar...
dbmscse61
 
PPTX
Introduction to Database System-WEEK2.pptx
melissaguillermo
 
PPSX
oracle
Vilasita Nandamuri
 
PPTX
Unit 1_1680588168525885258552585525855.pptx
dgfs55437
 
PDF
Brief about data base management system.pdf
jbrahmarao8
 
PPTX
Introduction to database
gagan bhattarai
 
PPTX
MADHU.pptx
SaiKanna14
 
PPT
This discussion about the dbms introduction
rishabsharma1509
 
PPTX
8.DBMS.pptx
CallplanetsDeveloper
 
PPTX
Lec20.pptx introduction to data bases and information systems
samiullahamjad06
 
PPT
Week 1 Before the Advent of Database Systems & Fundamental Concepts
oudesign
 
DOCX
Database management system by Gursharan singh
Gursharan Singh
 
PPTX
IET MySQL PPT Ver9ZESXRDCTFYVGBUHNIJOMK.pptx
chinmaygulhane747
 
data base manage ment
kaleemullah125
 
Database overview
Sayem Khan
 
ppt_rdbms.pdfuvuguvuvugycycyctcucuvyvvuvuvy
vk5985399
 
INTRODUCTION TO DATABASE-SYSTEMS PRESENTATION.pptx
renadmajid789
 
dbms lecture 1.pptx , where traditional file system vs database management ar...
dbmscse61
 
Introduction to Database System-WEEK2.pptx
melissaguillermo
 
Unit 1_1680588168525885258552585525855.pptx
dgfs55437
 
Brief about data base management system.pdf
jbrahmarao8
 
Introduction to database
gagan bhattarai
 
MADHU.pptx
SaiKanna14
 
This discussion about the dbms introduction
rishabsharma1509
 
Lec20.pptx introduction to data bases and information systems
samiullahamjad06
 
Week 1 Before the Advent of Database Systems & Fundamental Concepts
oudesign
 
Database management system by Gursharan singh
Gursharan Singh
 
IET MySQL PPT Ver9ZESXRDCTFYVGBUHNIJOMK.pptx
chinmaygulhane747
 
Ad

More from emailharmeet (20)

PPT
Lecture 10 distributed database management system
emailharmeet
 
PPT
Lecture 09 dblc centralized vs decentralized design
emailharmeet
 
PPT
Lecture 09 dblc centralized vs decentralized design
emailharmeet
 
PPT
Lecture 08 distributed dbms
emailharmeet
 
PPT
Lecture 07 relational database management system
emailharmeet
 
PPT
Lecture 06 relational algebra and calculus
emailharmeet
 
PPTX
Testing lecture after lec 4
emailharmeet
 
PPT
Lab 1
emailharmeet
 
PPTX
Revision Lecture
emailharmeet
 
PPT
Lecture 4
emailharmeet
 
PPT
Lecture 3 c++
emailharmeet
 
PPT
Lecture 2
emailharmeet
 
DOCX
Course File c++
emailharmeet
 
PPT
Lecture 05 dblc
emailharmeet
 
DOCX
Assignmnet 1
emailharmeet
 
PPT
Lecture 04 normalization
emailharmeet
 
PPT
Lecture 03 data abstraction and er model
emailharmeet
 
PPT
Lecture 02 terminology of database
emailharmeet
 
PPT
Lecture 00 introduction to course
emailharmeet
 
DOC
Syllabus mca 2 rdbms i
emailharmeet
 
Lecture 10 distributed database management system
emailharmeet
 
Lecture 09 dblc centralized vs decentralized design
emailharmeet
 
Lecture 09 dblc centralized vs decentralized design
emailharmeet
 
Lecture 08 distributed dbms
emailharmeet
 
Lecture 07 relational database management system
emailharmeet
 
Lecture 06 relational algebra and calculus
emailharmeet
 
Testing lecture after lec 4
emailharmeet
 
Revision Lecture
emailharmeet
 
Lecture 4
emailharmeet
 
Lecture 3 c++
emailharmeet
 
Lecture 2
emailharmeet
 
Course File c++
emailharmeet
 
Lecture 05 dblc
emailharmeet
 
Assignmnet 1
emailharmeet
 
Lecture 04 normalization
emailharmeet
 
Lecture 03 data abstraction and er model
emailharmeet
 
Lecture 02 terminology of database
emailharmeet
 
Lecture 00 introduction to course
emailharmeet
 
Syllabus mca 2 rdbms i
emailharmeet
 

Lecture 01 introduction to database

  • 1. Lecture 1 File Systems and Databases
  • 2. In this lecture, you will learn: What a database is, what it does, and why database design is important How modern databases evolved from files and file systems About flaws in file system data management What a DBMS is, what it does, and how it fits into the database system About types of database systems and database models
  • 3. Introducing the Database Data versus Information Data constitute building blocks of information Information produced by processing data Information reveals meaning of data Good, timely, relevant information key to decision making Good decision making key to organizational survival
  • 4. Database Management Database is shared, integrated computer structure housing: End user data Metadata Database Management System (DBMS) Manages Database structure Controls access to data Contains query language
  • 5. Importance of DBMS Makes data management more efficient and effective Query language allows quick answers to ad hoc queries Provides better access to more and better-managed data Promotes integrated view of organization’s operations Reduces the probability of inconsistent data
  • 7. Database Design Importance of Good Design Poor design results in unwanted data redundancy Poor design generates errors leading to bad decisions Practical Approach Focus on principles and concepts of database design Importance of logical design
  • 8. Historical Roots of Database First applications focused on clerical tasks Requests for information quickly followed File systems developed to address needs Data organized according to expected use Data Processing (DP) specialists computerized manual file systems
  • 9. Different Terminology in Database Salary Table Name (File) Field (Data item) Record Data End User Data Meta Data Sr. No. Name Basic DA HRA Total 1. Mayank 10,000 2500 100 12600 2. Hiten 12,000 2000 200 14200 3. Ram 15,000 4000 100 19100
  • 10. File Terminology Data Raw Facts Field Group of characters with specific meaning Record Logically connected fields that describe a person, place, or thing File Collection of related records
  • 11. Simple File System Figure 1.5
  • 12. File System Critique File System Data Management Requires extensive programming in third-generation language (3GL) Time consuming Makes ad hoc queries impossible Leads to islands of information
  • 13. File System Critique (con’t.) Data Dependence Change in file’s data characteristics requires modification of data access programs Must tell program what to do and how Makes file systems cumbersome from programming and data management views Structural Dependence Change in file structure requires modification of related programs
  • 14. File System Critique (con’t.) Field Definitions and Naming Conventions Flexible record definition anticipates reporting requirements Selection of proper field names important Attention to length of field names Use of unique record identifiers
  • 15. File System Critique (con’t.) Data Redundancy Different and conflicting versions of same data Results of uncontrolled data redundancy Data anomalies Modification Insertion Deletion Data inconsistency Lack of data integrity
  • 16. Database Systems Database consists of logically related data stored in a single repository Provides advantages over file system management approach Eliminates inconsistency, data anomalies, data dependency, and structural dependency problems Stores data structures, relationships, and access paths
  • 17. Database vs. File Systems Figure 1.6
  • 18. Database System Environment Figure 1.7
  • 19. Database System Types Single-user vs. Multiuser Database Desktop Workgroup Enterprise Centralized vs. Distributed Use Production or transactional Decision support or data warehouse
  • 20. DBMS Functions Data dictionary management Data storage management Data transformation and presentation Security management Multiuser access control Backup and recovery management Data integrity management Database language and application programming interfaces Database communication interfaces
  • 21. Database Models Collection of logical constructs used to represent data structure and relationships within the database Conceptual models: logical nature of data representation Implementation models: emphasis on how the data are represented in the database
  • 22. Relationships in Conceptual Models One-to-one (1:1) One-to-many (1:M) Many-to-many (M:N) Implementation Database Models Hierarchical Network Relational Database Models (con’t.)
  • 23. Hierarchical Database Model Logically represented by an upside down tree Each parent can have many children Each child has only one parent Figure 1.8
  • 24. Hierarchical Database Model Advantages Conceptual simplicity Database security and integrity Data independence Efficiency Disadvantages Complex implementation Difficult to manage and lack of standards Lacks structural independence Applications programming and use complexity Implementation limitations
  • 25. Network Database Model Each record can have multiple parents Composed of sets Each set has owner record and member record Member may have several owners Figure 1.10
  • 26. Network Database Model Advantages Conceptual simplicity Handles more relationship types Data access flexibility Promotes database integrity Data independence Conformance to standards Disadvantages System complexity Lack of structural independence
  • 27. Relational Database Model Perceived by user as a collection of tables for data storage Tables are a series of row/column intersections Tables related by sharing common entity characteristic(s)
  • 28. Relational Database Model (con’t.) Figure 1.11
  • 29. Relational Database Model Advantages Structural independence Improved conceptual simplicity Easier database design, implementation, management, and use Ad hoc query capability with SQL Powerful database management system
  • 30. Relational Database Model Disadvantages Substantial hardware and system software overhead Poor design and implementation is made easy May promote “islands of information” problems
  • 31. Entity Relationship Database Model Complements the relational data model concepts Represented in an entity relationship diagram (ERD) Based on entities, attributes, and relationships Figure 1.13
  • 32. Entity Relationship Database Model Advantages Exceptional conceptual simplicity Visual representation Effective communication tool Integrated with the relational database model Disadvantages Limited constraint representation Limited relationship representation No data manipulation language Loss of information content
  • 33. Object-Oriented Database Model Objects or abstractions of real-world entities are stored Attributes describe properties Collection of similar objects is a class Methods represent real world actions of classes Classes are organized in a class hierarchy Inheritance is ability of object to inherit attributes and methods of classes above it
  • 34. OO Data Model Advantages Adds semantic content Visual presentation includes semantic content Database integrity Both structural and data independence Disadvantages Lack of OODM Complex navigational data access Steep learning curve High system overhead slows transactions
  • 35. Database Models and the Internet Characteristics of “Internet age” databases Flexible, efficient, and secure Internet access Easily used, developed, and supported Supports complex data types and relationships Seamless interfaces with multiple data sources and structures Simplicity of conceptual database model Many database design, implementation, and application development tools Powerful DBMS GUI make DBA job easier

Editor's Notes