SlideShare una empresa de Scribd logo
1 de 36
Chapter 1 File Systems and Databases Database Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 2 In this chapter, 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
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 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
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 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
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 5 Importance of DBMS ,[object Object]
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,[object Object]
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 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
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 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
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 9 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
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 10 Simple File System Figure 1.5
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 11 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
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 12 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
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 13 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
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 14 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: Design, Implementation, & Management, 5th Edition, Rob & Coronel 15 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 Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 16 Database vs. File Systems Figure 1.6
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 17 Database SystemEnvironment Figure 1.7
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 18 Database System Types Single-user vs. Multiuser Database Desktop Workgroup Enterprise Centralized vs. Distributed Use Production or transactional Decision support or data warehouse
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 19 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 Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 20 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
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 21 Database Models (con’t.) 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 Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 22 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
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 23 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
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 24 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
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 25 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
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 26 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)
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 27 Relational Database Model (con’t.) Figure 1.11
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 28 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
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 29 Relational Database Model Disadvantages Substantial hardware and system software overhead Poor design and implementation is made easy May promote “islands of information” problems
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 30 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
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 31 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
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 32 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
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 33 Comparison of OO and E-R Data Models Figure 1.15

Más contenido relacionado

Destacado

Intermediacion financiera
Intermediacion financieraIntermediacion financiera
Intermediacion financieraAl Cougar
 
Hostway StreamPlay Presentation
Hostway StreamPlay PresentationHostway StreamPlay Presentation
Hostway StreamPlay PresentationHostway Romania
 
Symbiosis sam
Symbiosis samSymbiosis sam
Symbiosis samLM9
 
[Hi c2011]building mission critical messaging system(guoqiang jerry)
[Hi c2011]building mission critical messaging system(guoqiang jerry)[Hi c2011]building mission critical messaging system(guoqiang jerry)
[Hi c2011]building mission critical messaging system(guoqiang jerry)baggioss
 
Problem management in Steria operations
Problem management in Steria operationsProblem management in Steria operations
Problem management in Steria operationsAndreas Aasen
 
English iii rico the dog
English iii rico the dogEnglish iii rico the dog
English iii rico the dogMeibel Chaves
 
Tech 2.0: Tech Tips to Boost Office Productivity
Tech 2.0: Tech Tips to Boost Office ProductivityTech 2.0: Tech Tips to Boost Office Productivity
Tech 2.0: Tech Tips to Boost Office ProductivityJohn Chen
 
Marzoni Casual Collection 2011
Marzoni Casual Collection  2011Marzoni Casual Collection  2011
Marzoni Casual Collection 2011kumaradam
 
140321_株式会社MK翻訳事務所_会社紹介
140321_株式会社MK翻訳事務所_会社紹介140321_株式会社MK翻訳事務所_会社紹介
140321_株式会社MK翻訳事務所_会社紹介MK Translation Firm
 
CETS 2011, Brian Richardson, slides for Best Practices for LMS Selection and ...
CETS 2011, Brian Richardson, slides for Best Practices for LMS Selection and ...CETS 2011, Brian Richardson, slides for Best Practices for LMS Selection and ...
CETS 2011, Brian Richardson, slides for Best Practices for LMS Selection and ...Chicago eLearning & Technology Showcase
 
Lexus Venture Banjarmasin
Lexus Venture BanjarmasinLexus Venture Banjarmasin
Lexus Venture BanjarmasinTimbul Naibaho
 
2016 17 αειφόρος περιβαλλοντική εκπαιδευτική πολιτική του σχολείου δροσιας κβ
2016 17 αειφόρος περιβαλλοντική εκπαιδευτική πολιτική του σχολείου δροσιας κβ2016 17 αειφόρος περιβαλλοντική εκπαιδευτική πολιτική του σχολείου δροσιας κβ
2016 17 αειφόρος περιβαλλοντική εκπαιδευτική πολιτική του σχολείου δροσιας κβDrosia Primary School
 

Destacado (20)

Intermediacion financiera
Intermediacion financieraIntermediacion financiera
Intermediacion financiera
 
Hostway StreamPlay Presentation
Hostway StreamPlay PresentationHostway StreamPlay Presentation
Hostway StreamPlay Presentation
 
Nzas 2014
Nzas 2014Nzas 2014
Nzas 2014
 
Symbiosis sam
Symbiosis samSymbiosis sam
Symbiosis sam
 
Guangzhou
GuangzhouGuangzhou
Guangzhou
 
Cets 2015 ls iaco cheap cheerful
Cets 2015 ls iaco cheap cheerfulCets 2015 ls iaco cheap cheerful
Cets 2015 ls iaco cheap cheerful
 
CamTech
CamTechCamTech
CamTech
 
[Hi c2011]building mission critical messaging system(guoqiang jerry)
[Hi c2011]building mission critical messaging system(guoqiang jerry)[Hi c2011]building mission critical messaging system(guoqiang jerry)
[Hi c2011]building mission critical messaging system(guoqiang jerry)
 
Appendix c
Appendix cAppendix c
Appendix c
 
Problem management in Steria operations
Problem management in Steria operationsProblem management in Steria operations
Problem management in Steria operations
 
Fazd Bovine Babesia Paper
Fazd Bovine Babesia PaperFazd Bovine Babesia Paper
Fazd Bovine Babesia Paper
 
English iii rico the dog
English iii rico the dogEnglish iii rico the dog
English iii rico the dog
 
My Personality Development
My Personality DevelopmentMy Personality Development
My Personality Development
 
Tech 2.0: Tech Tips to Boost Office Productivity
Tech 2.0: Tech Tips to Boost Office ProductivityTech 2.0: Tech Tips to Boost Office Productivity
Tech 2.0: Tech Tips to Boost Office Productivity
 
Marzoni Casual Collection 2011
Marzoni Casual Collection  2011Marzoni Casual Collection  2011
Marzoni Casual Collection 2011
 
140321_株式会社MK翻訳事務所_会社紹介
140321_株式会社MK翻訳事務所_会社紹介140321_株式会社MK翻訳事務所_会社紹介
140321_株式会社MK翻訳事務所_会社紹介
 
CETS 2011, Brian Richardson, slides for Best Practices for LMS Selection and ...
CETS 2011, Brian Richardson, slides for Best Practices for LMS Selection and ...CETS 2011, Brian Richardson, slides for Best Practices for LMS Selection and ...
CETS 2011, Brian Richardson, slides for Best Practices for LMS Selection and ...
 
Lexus Venture Banjarmasin
Lexus Venture BanjarmasinLexus Venture Banjarmasin
Lexus Venture Banjarmasin
 
2016 17 αειφόρος περιβαλλοντική εκπαιδευτική πολιτική του σχολείου δροσιας κβ
2016 17 αειφόρος περιβαλλοντική εκπαιδευτική πολιτική του σχολείου δροσιας κβ2016 17 αειφόρος περιβαλλοντική εκπαιδευτική πολιτική του σχολείου δροσιας κβ
2016 17 αειφόρος περιβαλλοντική εκπαιδευτική πολιτική του σχολείου δροσιας κβ
 
HK International ICT Expo 2012
HK International ICT Expo 2012HK International ICT Expo 2012
HK International ICT Expo 2012
 

Similar a 01 chapter

Lecture 01 introduction to database
Lecture 01 introduction to databaseLecture 01 introduction to database
Lecture 01 introduction to databaseemailharmeet
 
data base management system (DBMS)
data base management system (DBMS)data base management system (DBMS)
data base management system (DBMS)Varish Bajaj
 
TID Chapter 10 Introduction To Database
TID Chapter 10 Introduction To DatabaseTID Chapter 10 Introduction To Database
TID Chapter 10 Introduction To DatabaseWanBK Leo
 
INTRODUCTION TO DATABASE-SYSTEMS PRESENTATION.pptx
INTRODUCTION TO DATABASE-SYSTEMS PRESENTATION.pptxINTRODUCTION TO DATABASE-SYSTEMS PRESENTATION.pptx
INTRODUCTION TO DATABASE-SYSTEMS PRESENTATION.pptxrenadmajid789
 
Chapter 1 Database Systems.pptx
Chapter 1 Database Systems.pptxChapter 1 Database Systems.pptx
Chapter 1 Database Systems.pptxMaxamedAbiib1
 
DBMS Lec 1 & 2.ppt
DBMS Lec 1 & 2.pptDBMS Lec 1 & 2.ppt
DBMS Lec 1 & 2.pptMariaEmaan1
 
Chapter 6 Elements of Database Systems 1 of 30 ACCO.docx
Chapter 6  Elements of Database Systems  1 of 30 ACCO.docxChapter 6  Elements of Database Systems  1 of 30 ACCO.docx
Chapter 6 Elements of Database Systems 1 of 30 ACCO.docxrobertad6
 
Database-management-system-dbms-ppt.pptx
Database-management-system-dbms-ppt.pptxDatabase-management-system-dbms-ppt.pptx
Database-management-system-dbms-ppt.pptxDhruveeHalvadiya
 
Chapter 1: Learning about Database and How to become an expert in this field
Chapter 1: Learning about Database and How to become an expert in this fieldChapter 1: Learning about Database and How to become an expert in this field
Chapter 1: Learning about Database and How to become an expert in this fielddinhquochuy2004hl
 
information systems
information systems information systems
information systems naeem_mnm
 

Similar a 01 chapter (20)

1-IntroDB.ppt
1-IntroDB.ppt1-IntroDB.ppt
1-IntroDB.ppt
 
Lecture 01 introduction to database
Lecture 01 introduction to databaseLecture 01 introduction to database
Lecture 01 introduction to database
 
02010 ppt ch01
02010 ppt ch0102010 ppt ch01
02010 ppt ch01
 
data base management system (DBMS)
data base management system (DBMS)data base management system (DBMS)
data base management system (DBMS)
 
27 fcs157 l1
27 fcs157 l127 fcs157 l1
27 fcs157 l1
 
Database Systems Concepts, 5th Ed
Database Systems Concepts, 5th EdDatabase Systems Concepts, 5th Ed
Database Systems Concepts, 5th Ed
 
Db lecture 1
Db lecture 1Db lecture 1
Db lecture 1
 
02010 ppt ch02
02010 ppt ch0202010 ppt ch02
02010 ppt ch02
 
ch1
ch1ch1
ch1
 
TID Chapter 10 Introduction To Database
TID Chapter 10 Introduction To DatabaseTID Chapter 10 Introduction To Database
TID Chapter 10 Introduction To Database
 
INTRODUCTION TO DATABASE-SYSTEMS PRESENTATION.pptx
INTRODUCTION TO DATABASE-SYSTEMS PRESENTATION.pptxINTRODUCTION TO DATABASE-SYSTEMS PRESENTATION.pptx
INTRODUCTION TO DATABASE-SYSTEMS PRESENTATION.pptx
 
Chapter 1 Database Systems.pptx
Chapter 1 Database Systems.pptxChapter 1 Database Systems.pptx
Chapter 1 Database Systems.pptx
 
DBMS Lec 1 & 2.ppt
DBMS Lec 1 & 2.pptDBMS Lec 1 & 2.ppt
DBMS Lec 1 & 2.ppt
 
DBMS.pptx
DBMS.pptxDBMS.pptx
DBMS.pptx
 
Mis chapter 7 database systems
Mis chapter 7 database systemsMis chapter 7 database systems
Mis chapter 7 database systems
 
Chapter 6 Elements of Database Systems 1 of 30 ACCO.docx
Chapter 6  Elements of Database Systems  1 of 30 ACCO.docxChapter 6  Elements of Database Systems  1 of 30 ACCO.docx
Chapter 6 Elements of Database Systems 1 of 30 ACCO.docx
 
Database-management-system-dbms-ppt.pptx
Database-management-system-dbms-ppt.pptxDatabase-management-system-dbms-ppt.pptx
Database-management-system-dbms-ppt.pptx
 
Chapter 1: Learning about Database and How to become an expert in this field
Chapter 1: Learning about Database and How to become an expert in this fieldChapter 1: Learning about Database and How to become an expert in this field
Chapter 1: Learning about Database and How to become an expert in this field
 
Lecture2 is331 data&infomanag(databaseenv)
Lecture2 is331 data&infomanag(databaseenv)Lecture2 is331 data&infomanag(databaseenv)
Lecture2 is331 data&infomanag(databaseenv)
 
information systems
information systems information systems
information systems
 

Más de rupalidhir

Lecture 02 architecture of dbms
Lecture 02 architecture of dbmsLecture 02 architecture of dbms
Lecture 02 architecture of dbmsrupalidhir
 
Lecture 01 overview of dbms
Lecture 01 overview of dbmsLecture 01 overview of dbms
Lecture 01 overview of dbmsrupalidhir
 
Coursemodule dbms
Coursemodule dbmsCoursemodule dbms
Coursemodule dbmsrupalidhir
 
Course plan os
Course plan   osCourse plan   os
Course plan osrupalidhir
 
Course plan os
Course plan   osCourse plan   os
Course plan osrupalidhir
 
Course plan os
Course plan   osCourse plan   os
Course plan osrupalidhir
 
2nd hourly test marks
2nd hourly test marks2nd hourly test marks
2nd hourly test marksrupalidhir
 
Mis presentation topics bca2
Mis presentation topics bca2Mis presentation topics bca2
Mis presentation topics bca2rupalidhir
 
Course module biotech_1_it
Course module biotech_1_itCourse module biotech_1_it
Course module biotech_1_itrupalidhir
 
Course module biotech_1_it
Course module biotech_1_itCourse module biotech_1_it
Course module biotech_1_itrupalidhir
 
Course module biotech_1_it
Course module biotech_1_itCourse module biotech_1_it
Course module biotech_1_itrupalidhir
 

Más de rupalidhir (20)

Lecture 02 architecture of dbms
Lecture 02 architecture of dbmsLecture 02 architecture of dbms
Lecture 02 architecture of dbms
 
Lecture 01 overview of dbms
Lecture 01 overview of dbmsLecture 01 overview of dbms
Lecture 01 overview of dbms
 
Coursemodule dbms
Coursemodule dbmsCoursemodule dbms
Coursemodule dbms
 
Ch1
Ch1Ch1
Ch1
 
Course plan os
Course plan   osCourse plan   os
Course plan os
 
Course plan os
Course plan   osCourse plan   os
Course plan os
 
Course plan os
Course plan   osCourse plan   os
Course plan os
 
Access 2007
Access 2007Access 2007
Access 2007
 
2nd hourly test marks
2nd hourly test marks2nd hourly test marks
2nd hourly test marks
 
Ch1
Ch1Ch1
Ch1
 
Ch2
Ch2Ch2
Ch2
 
Ch3
Ch3Ch3
Ch3
 
Msc it(1)
Msc it(1)Msc it(1)
Msc it(1)
 
Ms1 syllabus
Ms1 syllabusMs1 syllabus
Ms1 syllabus
 
Bca (mis)
Bca (mis)Bca (mis)
Bca (mis)
 
Mis syllabus
Mis syllabusMis syllabus
Mis syllabus
 
Mis presentation topics bca2
Mis presentation topics bca2Mis presentation topics bca2
Mis presentation topics bca2
 
Course module biotech_1_it
Course module biotech_1_itCourse module biotech_1_it
Course module biotech_1_it
 
Course module biotech_1_it
Course module biotech_1_itCourse module biotech_1_it
Course module biotech_1_it
 
Course module biotech_1_it
Course module biotech_1_itCourse module biotech_1_it
Course module biotech_1_it
 

01 chapter

  • 1. Chapter 1 File Systems and Databases Database Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel
  • 2. Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 2 In this chapter, 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. Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 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 Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 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.
  • 6. Query language allows quick answers to ad hoc queries
  • 7. Provides better access to more and better-managed data
  • 8. Promotes integrated view of organization’s operations
  • 9.
  • 10. Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 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
  • 11. Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 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
  • 12. Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 9 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
  • 13. Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 10 Simple File System Figure 1.5
  • 14. Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 11 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
  • 15. Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 12 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
  • 16. Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 13 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
  • 17. Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 14 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
  • 18. Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 15 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
  • 19. Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 16 Database vs. File Systems Figure 1.6
  • 20. Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 17 Database SystemEnvironment Figure 1.7
  • 21. Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 18 Database System Types Single-user vs. Multiuser Database Desktop Workgroup Enterprise Centralized vs. Distributed Use Production or transactional Decision support or data warehouse
  • 22. Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 19 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
  • 23. Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 20 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
  • 24. Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 21 Database Models (con’t.) 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
  • 25. Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 22 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
  • 26. Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 23 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
  • 27. Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 24 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
  • 28. Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 25 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
  • 29. Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 26 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)
  • 30. Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 27 Relational Database Model (con’t.) Figure 1.11
  • 31. Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 28 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
  • 32. Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 29 Relational Database Model Disadvantages Substantial hardware and system software overhead Poor design and implementation is made easy May promote “islands of information” problems
  • 33. Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 30 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
  • 34. Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 31 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
  • 35. Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 32 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
  • 36. Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 33 Comparison of OO and E-R Data Models Figure 1.15
  • 37. Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 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
  • 38. Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 35 Development of Data Models Figure 1.16
  • 39. Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 36 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