6/2/20161 Database Systems Lecture # 3 By: Asma Ahmad Jan 21 st, 2011.

Slides:



Advertisements
Similar presentations
Introduction to Databases
Advertisements

Prentice Hall, Database Systems Week 1 Introduction By Zekrullah Popal.
Managing Data Resources
Managing data Resources: An information system provides users with timely, accurate, and relevant information. The information is stored in computer files.
File Systems and Databases
Introduction to Databases
Organizing Data & Information
Ch1: File Systems and Databases Hachim Haddouti
Data Management I DBMS Relational Systems. Overview u Introduction u DBMS –components –types u Relational Model –characteristics –implementation u Physical.
Introduction to Databases Transparencies
File Systems and Databases Hachim Haddouti
Managing data Resources:
Prevalent Database Models (Advantages of a database over flat files)
WHAT IS A DATABASE ? a collection of data organized to help easy retrieval & usage.
Introduction to Databases Transparencies 1. ©Pearson Education 2009 Objectives Common uses of database systems. Meaning of the term database. Meaning.
LECTURE 2 DATABASE SYSTEM CONCEPTS AND ARCHITECTURE.
Database Design and Introduction to SQL
DBMS Lecture 1 Data and Information Data Processing Zeshan Ahmer.
Database Systems: Design, Implementation, and Management Ninth Edition
Chapter 1 Database Systems. Good decisions require good information derived from raw facts Data is managed most efficiently when stored in a database.
2 1 Chapter 2 Data Model Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
Management Information Systems, 4 th Edition 1 Chapter 8 Data and Knowledge Management.
1 DATABASE TECHNOLOGIES BUS Abdou Illia, Fall 2007 (Week 3, Tuesday 9/4/2007)
Week 1 Lecture MSCD 600 Database Architecture Samuel ConnSamuel Conn, Asst. Professor Suggestions for using the Lecture Slides.
CS370 Spring 2007 CS 370 Database Systems Lecture 2 Overview of Database Systems.
Database Management System Lecture 3 Models of Database Management Systems.
Chapter 1 Introduction to Databases Pearson Education ©
Web-Enabled Decision Support Systems
Database Design - Lecture 2
Introduction: Databases and Database Users
Database Management System (DBMS)
2005 SPRING CSMUIntroduction to Information Management1 Organizing Data John Sum Institute of Technology Management National Chung Hsing University.
Architecture for a Database System
Prof. Sujata Rao Introduction to Computers & MIS Data Base Concepts Lesson 8.
Data Bases Trisha Cummings. What is a database A database is a large, organized collection of information. A collection of data arranged for ease and.
Copyright © 2015 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
Announcements. Data Management Chapter 12 Traditional File Approach  Structure Field  Record  File  Fixed All records have common fields, and a field.
1 Chapter 1 Introduction to Databases Transparencies Last Updated: Pebruari 2010 By M. Arief Updated by RSO Feb 2011
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Chapter 7 Storing Organizational Information - Databases.
Advantage of File-oriented system: it provides useful historical information about how data are managed earlier. File-oriented systems create many problems.
INFO1408 Database Design Concepts Week 15: Introduction to Database Management Systems.
FILES AND DATABASES. A FILE is a collection of records with similar characteristics, e.g: A Sales Ledger Stock Records A Price List Customer Records Files.
Chapter 9 Database Systems Introduction to CS 1 st Semester, 2014 Sanghyun Park.
Chapter 8 Data and Knowledge Management. 2 Learning Objectives When you finish this chapter, you will  Know the difference between traditional file organization.
3 / 12 Databases MIS105 Lec13 Irfan Ahmed Ilyas CHAPTER Prepared By:
IT Auditing & Assurance, 2e, Hall & Singleton Chapter 8: IT Auditing & Assurance, 2e, Hall & Singleton CAATTs for Data Extraction and Analysis.
Organizing Data and Information
Management Information Systems, 4 th Edition 1 Chapter 8 Data and Knowledge Management.
GIS Data Models GEOG 370 Christine Erlien, Instructor.
Lection №4 Development of the Relational Databases.
CIS 250 Advanced Computer Applications Database Management Systems.
1 Geog 357: Data models and DBMS. Geographic Decision Making.
Introduction to Databases Angela Clark University of South Alabama.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 1 Database Systems.
Presentation on Database management Submitted To: Prof: Rutvi Sarang Submitted By: Dharmishtha A. Baria Roll:No:1(sem-3)
DBS201: Data Modeling. Agenda Data Modeling Types of Models Entity Relationship Model.
1 Lecture1 Introduction to Databases Systems Database 1.
1 Management Information Systems M Agung Ali Fikri, SE. MM.
Managing Data Resources File Organization and databases for business information systems.
Databases and Database User ch1 Define Database? A database is a collection of related data.1 By data, we mean known facts that can be recorded and that.
Introduction To DBMS.
Database Management System
Introduction to Database Management System
Database.
File Systems and Databases
Managing data Resources:
DATABASES WHAT IS A DATABASE?
Managing data Resources:
Presentation transcript:

6/2/20161 Database Systems Lecture # 3 By: Asma Ahmad Jan 21 st, 2011

6/2/20162 Brief Recap Database and its Basics File Processing Systems Database Approach & its Advantages Database Management Systems (DBMS)

6/2/20163 In Today’s Lecture Non-Relational Systems Flat-File Systems Hierarchical Systems Network System

6/2/20164 Non-Relational Systems Database systems can be conveniently categorized according to the data structures and operators they present to the user The oldest system fall into three broad categories: Flat-File Systems Hierarchical Systems Network Systems We will not discuss these categories in great detail as, although some are still used, they are obsolete We will focus on relational databases

6/2/20165 Flat-File Systems

6/2/20166 Flat-File Systems The file system was a start. However, it was seriously inefficient Essentially, in order to find a record, someone would have to read through the entire file and hope it would not be the last record Imagine last record is the required one… What was needed, computer scientist thought, was a “card catalog”, a mean to achieve the ability to efficiently access a single record without searching the entire file to find it So the result was the “indexed file-oriented systems” in which a single index file stored “key” words and pointers to records that were stored else where. This made retrieval much more easier. But How??? To find data, one needed only search for keys rather than reading entire records. This was referred to as “flat-file systems”

Files, Records, and Fields

Indexed Files

6/2/20169 Flat-File Systems (Cont…) Even with the benefits of indexing, the file-oriented systems still suffered from problems discussed before Data Redundancy - the same data might be stored in different places Poor Data Control - redundant data might be slightly different such as in the case when XYZ changes his city and the change is only reflected in some of the files containing his data Inability to Easily Manipulate Data - it was a tedious and error prone activity to modify files by hand

6/2/ Hierarchical Databases

6/2/ Hierarchical Databases Early databases were Hierarchical databases Records are arranged in top-down structure, that resembles a tree Examples… They used a hierarchical structure, in which all related data had a “parent-to-child relationship” A parent data item could have multiple child data items, but a child could only have one parent Relationship between related data were created using pointers, which are links to the physical locations where data was written to the disk

6/2/ Hierarchical Model Customer Order 2 List Item 2List Item 1List Item 2List Item 1 Order 1

6/2/ Parent/Child Relationship The “parent/child” rule assures that data are systematically accessible. To get to a low-level data, you start at the root and work your way down through the tree until you reach your target One problem with this system is that the user must know how the tree is structured in order to find anything!! The hierarchical data model, however, is much more efficient then the flat-file model discussed earlier because there is not as much need for redundant data. If a change in the data is necessary, the change might be need to processed once One other feature of the hierarchical database system was the introduction of the Database Management System (DBMS) software

6/2/ Hierarchical Systems One of the most popular hierarchical database management system was IBM’s information management system (IMS) database system, first introduced in 1968 We will not have the opportunity to study IMS, but you can see its current version (Version 11) at It is still being used and now provides additional features

6/2/ Hierarchical Systems (Cont…) The SABRE database system was jointly developed by American Airlines and IBM at about the same time IMS was developed It is an airline reservation system The SABRE is still used by the web-based travel; services such as Travelocity.com

6/2/ Hierarchical Databases Example DEPARTMENT PROJECTEMPLOYEE EQUIPMENTPERSONALSKILL Can you identify problems with this approach?

6/2/ In summary, the following rules govern a hierarchical data structure: A parent record type may “own” an arbitrary number of child record types.  For example: EMPLOYEE owns both SKILL and PERSONAL No single occurrence of a record type may have more then one parent record type (or occurrence) in the hierarchy So according to these rules can you think of any limitations?? Hierarchical Databases Example (Cont…)

6/2/ Hierarchical Databases Example (Cont…) Violation of second rule SKILL has two parents…Can you think of any solutions? DEPARTMENT PROJECTEMPLOYEE EQUIPMENTPERSONALSKILL COURSE

6/2/ Hierarchical Databases Example (Cont…) Two Hierarchical Data Model But there are problems associated with this approach. DEPARTMENT PROJECTEMPLOYEE EQUIPMENTPERSONALSKILL COURSE SKILL

6/2/ Hierarchical Databases Example (Cont…) Customer Order 2 List Item 2List Item 1List Item 2List Item 1 Order 1

6/2/ Hierarchical Database Problems In the previous example, at the physical layer, customers are linked to their associated orders data by using pointers A problem with the hierarchical database structure is that relationships are maintained by pointers that uses physical addresses The data are physically dependent on the storage medium When the storage medium becomes full, or when new hardware is purchased, it is difficult to migrate a hierarchical database to a new storage medium Another problem is of redundancy

6/2/ Hierarchical Database Disadvantages Although Hierarchical Database and their applications still exists, the Hierarchical model rapidly lost favor in the 1970s and early 1980s. The problems are: Complex Implementation Although the Hierarchical model’s DBMS relieves designer and programmer of data-dependence problems, they must still have detailed knowledge of the physical data storage characteristics Difficult to Manage Any changes in the database structure requires changes in the application programs to access the database

6/2/ Hierarchical Database Disadvantages (Cont…) Lack Structural Independence The programmer must know the access paths to the relevant segments Complex to program and use Application programs and end users must know that how the data are distributed physically within the database Representation Limitations Many common relationships do not conform to the tree structure required by the model No standards or Portability Because there are no standards moving from one hierarchical DBMS from another was difficult

6/2/ Legacy of Hierarchical Model Although the hierarchical database model is no longer a major player in the database market: Its basic concepts formed the basis for subsequent database development Its limitation lead to better ways of thinking about database design Some of its basic concepts show up in current database models The hierarchical data model has been rediscovered in some more modern databases such as object-oriented databases

6/2/ Evolution of DB Systems

6/2/ That’s it for today!