LECTURE 2 DATABASE SYSTEM CONCEPTS AND ARCHITECTURE.

Slides:



Advertisements
Similar presentations
Database Systems: Design, Implementation, and Management Ninth Edition
Advertisements

Database Systems: Design, Implementation, and Management Tenth Edition
Database Systems: Design, Implementation, and Management Tenth Edition
Database Systems: Design, Implementation, and Management Tenth Edition
1 © 2013 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U.S. only, with content that may be different from the.
Chapter 2 Data Models.
Database Systems: Design, Implementation, and Management Ninth Edition
Introduction to Databases
1 1 File Systems and Databases. 1 1 Introducing the Database 4Major Database Concepts u Data and information l Data - Raw facts l Information - Processed.
ITS232 Introduction To Database Management Systems
Chapter 2 Data Models Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Chapter 2 Data Model Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
Chapter 1 File Systems and Databases
Chapter 2 Data Models Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
File Systems and Databases
Chapter 2 Database Environment. Agenda Three-Level ANSI-SPARC Architecture Database Languages Data Models Functions of DBMS Components of DBMS Teleprocessing.
Data Models.
Ch1: File Systems and Databases Hachim Haddouti
Introduction to Databases Transparencies
File Systems and Databases Hachim Haddouti
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 2 Data Models Database Systems, 8th Edition 1.
Academic Year 2014 Spring.
IST Databases and DBMSs Todd S. Bacastow January 2005.
Introduction to Database Concepts
2 1 Chapter 2 Data Model Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
Chapter 2 Data Model Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
Information storage: Introduction of database 10/7/2004 Xiangming Mu.
Week 1 Lecture MSCD 600 Database Architecture Samuel ConnSamuel Conn, Asst. Professor Suggestions for using the Lecture Slides.
Database Systems: Design, Implementation, and Management THIRD EDITION
2 1 Chapter 2 Data Models Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
INTRODUCTION TO DATABASE (cont.)
CST203-2 Database Management Systems Lecture 2. One Tier Architecture Eg: In this scenario, a workgroup database is stored in a shared location on a single.
Database Design - Lecture 2
Database Systems: Design, Implementation, and Management Ninth Edition
8/27/2012ISC 329 Isabelle Bichindaritz1 File Systems Introduction to Databases.
311: Management Information Systems Database Systems Chapter 3.
Chapter # 2 Data Models BIS Database Systems A.Thanop Somprasong
2 1 Data Models MIS 304 Winter Class Goals Understand why data models are important Learn about the basic data-modeling building blocks Learn.
 Data Model Data Model  Categories of Data Models Categories of Data Models  Object Based Data Models Object Based Data Models  Physical Data Models.
1 Chapter 2 Data Model Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
1 Data Models. 2 Overview Why data models are important Basic data-modeling building blocks What are business rules and how do they influence database.
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
DataBase Management System What is DBMS Purpose of DBMS Data Abstraction Data Definition Language Data Manipulation Language Data Models Data Keys Relationships.
Chapter 8 Data and Knowledge Management. 2 Learning Objectives When you finish this chapter, you will  Know the difference between traditional file organization.
1Mr.Mohammed Abu Roqyah. Database System Concepts and Architecture 2Mr.Mohammed Abu Roqyah.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Database System Concepts and Architecture.
L Department of Mathematics Computer and Information Science l1l1 1 CS 351: Database Management Christopher I. G. Lanclos Chapter 2.
Chapter 2 Data Model Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
1 © 2013 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U.S. only, with content that may be different from the.
Database Environment Chapter 2. The Three-Level ANSI-SPARC Architecture External Level Conceptual Level Internal Level Physical Data.
Data Models. 2 The Importance of Data Models Data models –Relatively simple representations, usually graphical, of complex real-world data structures.
DBS201: Data Modeling. Agenda Data Modeling Types of Models Entity Relationship Model.
1 Database Design Chapter-2- Database System Concepts and Architecture Reference: Prof. Mona Mursi Lecture notes.
1 © 2013 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U.S. only, with content that may be different from the.
Learn about: Data modeling and why data models are important Basic data-modeling building blocks What business rules are and how they influence database.
Introduction: Databases and Database Systems Lecture # 1 June 19,2012 National University of Computer and Emerging Sciences.
1 © 2010 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U.S. only, with content that may be different from the.
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.
Database Systems: Design, Implementation, and Management Tenth Edition
REV 00 Chapter 2 Database Environment DDC DATABASE SYSTEM.
REV 00 Chapter 2 Database Environment DDC DATABASE SYSTEM.
Datab ase Systems Week 1 by Zohaib Jan.
ITS232 Introduction To Database Management Systems
Introduction to Database Management System
File Systems and Databases
Data Model.
Chapter 2 Data Models Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Chapter 2 Database Environment Pearson Education © 2014.
Presentation transcript:

LECTURE 2 DATABASE SYSTEM CONCEPTS AND ARCHITECTURE

What is a Data Model? A collection of concepts that can be used to describe the structure of a database ▫ Structure of a database - data types, relationships, and constraints that apply to the data. Relatively simple representations, usually graphical, of complex real-world data structures

The Importance of Data Models Data models; ▫ Facilitate interaction among the designer, the applications programmer, and the end user

Categories of Data Models Data models can be categorized according to the types of concepts they use to describe the database structure. High-level or conceptual data models provide concepts that are close to the way many users perceive data ▫ Entity-Relationship model is a popular high-level conceptual data model. Low-level or physical data models provide concepts that describe the details of how data is stored on the computer storage media.

Categories of Data Models (cont’d) Representational (or implementation) data models which provide concepts that may be easily understood by end users but are not too far removed from the way data is organized in computer storage. ▫ Representational or implementation data models are the models used most frequently in traditional commercial DBMSs. These include the widely used relational data model, network and hierarchical models.

Data Model Basic Building Blocks Conceptual data models use concepts such as entities, attributes, and relationships. ▫ Entity - anything about which data are to be collected and stored ▫ Attribute - a characteristic of an entity ▫ Relationship - describes an association among entities  One-to-one (1:1) relationship  One-to-many (1:*) relationship  Many-to-many (*:*) relationship  Recursive or involute relationship ▫ Constraint - a restriction placed on the data

Data Model Basic Building Blocks (cont’d) Cardinality of a Relationship ▫ One-to-one (1:1) relationship  An occurrence of the first entity type is related to a maximum of one occurrence of the second entity type, and each occurrence of the second type to a maximum of one of the first.  Eg: One MP is elected to one Constituency; one Constituency has one MP elected to it. ▫ One-to-many (1:*) relationship  An occurrence of the first entity may be related to several occurrences of the second, but each occurrence of the second is related to a maximum of one occurrence of the first.  Eg: One Teller serves several Customers; one Customer is served by one Teller

Data Model Basic Building Blocks (cont’d) Many-to-many (*:*) relationship ▫ An occurrence of the first entity type may be related to several occurrences of the second and vice versa ▫ Eg: One Student takes many Courses; one Course can be taken by several Students NB: All *:* relationships can be decomposed into two 1:* relationships Recursive or involute relationship Entity occurrences relate to other occurrences of the same entity Eg: One employee (a manager) manages one or more employees; one employee is managed by one employee (manager)

The Evolution of Data Models File System Hierarchical Network Relational Entity relationship Object oriented (OO) XML

The Hierarchical Model Developed in the 1960s to manage large amounts of data for complex manufacturing projects Basic logical structure is represented by an upside- down “tree”

Hierarchical Structure

Bank Hierarchical Database

Hierarchical Structure (cont’d) The hierarchical structure contains levels, or segments Depicts a set of one-to-many (1:*) relationships between a parent and its children segments ▫ Each parent can have many children, but each child has only one parent

Advantages of the Hierarchical Model (compared to the file system) It promotes data sharing Parent/child relationship promotes conceptual simplicity Database security is provided and enforced by DBMS Parent/child relationship promotes data integrity It is efficient with 1:* relationships It exhibits data independence

Disadvantages of the Hierarchical Model Complex implementation requires knowledge of physical data storage characteristics Difficult to manage Lacks structural independence Implementation limitations (no multiparent or *:* relationships) No ad hoc query capability Lack of standards

The Network Model Created to ▫ Represent complex data relationships more effectively ▫ Improve database performance ▫ Impose a database standard Conference on Data Systems Languages (CODASYL) ▫ Database Task Group (DBTG) – define standards and specifications for an environment that would facilitate database creation and data manipulation

Network Model (cont’d) Network Schema ▫ Conceptual organization of entire database as viewed by the database administrator Network Subschema ▫ Defines database portion “seen” by the application programs that actually produce the desired information from data contained within the database Data Management Language (DML) ▫ Defines the environment in which data can be managed

Network Model (cont’d) Schema Data Definition Language (DDL) ▫ Enables database administrator to define schema components Subschema DDL ▫ Allows application programs to define database components that will be used DML ▫ Works with the data in the database

Network Model (cont’d) Resembles hierarchical model – user perceived the network database as a collection of records in 1:* relationships Set ▫ Composed of at least two record types  Owner - Equivalent to the hierarchical model’s parent  Member - Equivalent to the hierarchical model’s child ▫ A set represents a 1:* relationship between the owner and the member

Network Model of a typical sales organization

Advantages of the Network Model Conceptual simplicity Handles more relationship types Data access flexibility Promotes database integrity Data independence Conformance to standards

Disadvantages of the Network Model The lack of ad hoc query capability put heavy pressure on programmers Any structural change in the database could produce havoc in all application programs that drew data from the database Too cumbersome