Data Modeling Bayu Adhi Tama, ST., MTI. Thanks to Poniah, Elamasri, and Silberkatz.

Slides:



Advertisements
Similar presentations
Relational Database and Data Modeling
Advertisements

Limitations of the relational model 1. 2 Overview application areas for which the relational model is inadequate - reasons drawbacks of relational DBMSs.
OO databases 1 Object Oriented databases. OO databases 2 Developing OODBMS - motivation motivation more and more application areas require systems that.
Database System Concepts and Architecture
Data Modeling and Database Design Chapter 1: Database Systems: Architecture and Components.
Database Systems: Design, Implementation, and Management Tenth Edition
ICS (072)Database Systems: A Review1 Database Systems: A Review Dr. Muhammad Shafique.
1 Chapter 2 Database Environment Transparencies © Pearson Education Limited 1995, 2005.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 2- 1.
Data Management I DBMS Relational Systems. Overview u Introduction u DBMS –components –types u Relational Model –characteristics –implementation u Physical.
Copyright © 2004 Pearson Education, Inc.. Chapter 2 Database System Concepts and Architecture.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 2- 1.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 2 Database System Concepts and Architecture.
Databases and Database Management Systems
1 Chapter 2 Database Environment. 2 Chapter 2 - Objectives u Purpose of three-level database architecture. u Contents of external, conceptual, and internal.
LECTURE 2 DATABASE SYSTEM CONCEPTS AND ARCHITECTURE.
IST Databases and DBMSs Todd S. Bacastow January 2005.
Database Environment 1.  Purpose of three-level database architecture.  Contents of external, conceptual, and internal levels.  Purpose of external/conceptual.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 2 Database System Concepts and Architecture.
DatabaseIM ISU1 Fundamentals of Database Systems Chapter 2 Database System Concepts and Architecture.
Module Title? DBMS Introduction to Database Management System.
Slide Chapter 2 Database System Concepts and Architecture.
Database System Concepts and Architecture
Chapter 2 CIS Sungchul Hong
Copyright © 2004 Pearson Education, Inc.. Chapter 2 Database System Concepts and Architecture.
CSC271 Database Systems Lecture # 4.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Database System Concepts and Architecture.
COSC 2307: Database Programming Lecture 1: Introduction Kalpdrum Passi Fall 2004 ( )
1 CSBP430 – Database Systems Chapter 2: Database System Concepts and Architecture Elarbi Badidi College of Information Technology United Arab Emirates.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 2- 1.
Lecture2: Database Environment Prepared by L. Nouf Almujally & Aisha AlArfaj 1 Ref. Chapter2 College of Computer and Information Sciences - Information.
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
Bayu Adhi Tama, M.T.I 1 © Pearson Education Limited 1995, 2005.
1Mr.Mohammed Abu Roqyah. Database System Concepts and Architecture 2Mr.Mohammed Abu Roqyah.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide 2- 1.
Assoc. Prof. Dr. Ahmet Turan ÖZCERİT.  The concept of Data, Information and Knowledge  The fundamental terms:  Database and database system  Database.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide 2- 1.
Copyright © 2004 Pearson Education, Inc. Chapter 2 Database System Concepts and Architecture.
Copyright (c) 2014 Pearson Education, Inc. Introduction to DBMS.
PART I : Databases and Database Management Systems These Slides are based on chapters 1-2 of Fundamentals of : Database Systems by Elmasri and Navathe,
Chapter 2 Database Environment.
1 Chapter 2 Database Environment Pearson Education © 2009.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 2- 1.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 2- 1.
Database Systems 主講人 : 陳建源 日期 :99/9/14 研究室 : 法 Chapter 2 Database System Concepts and Architecture.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide 2- 1.
Chapter 2 Database System Concepts and Architecture ICS (081)1.
Data Resource Management Data Concepts Database Management Types of Databases Chapter 5 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 2- 1.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 2 Database System Concepts and Architecture.
Chapter 2 Database System Concepts and Architecture Dr. Abdalla AlAmeen.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 2 Database System Concepts and Architecture.
Database System Concepts and Architecture
Databases and DBMSs Todd S. Bacastow January
REV 00 Chapter 2 Database Environment DDC DATABASE SYSTEM.
REV 00 Chapter 2 Database Environment DDC DATABASE SYSTEM.
Chapter 2 Database Environment.
An Introduction to database system
Database Management System
Database System Concepts and Architecture
11/9/2018.
Introduction to Database Management System
Chapter 2 Database Environment.
Database System Concepts and Architecture
12/8/2018.
1 CoSc 265 Fundamental of Database management System Instructor : Welde Janfa.
Database System Concepts and Architecture
5/8/2019.
5/8/2019.
Database System Concepts and Architecture
Presentation transcript:

Data Modeling Bayu Adhi Tama, ST., MTI. Thanks to Poniah, Elamasri, and Silberkatz

LOGO Review  DDL is usually used by database administrator (DBA) to retrieve or to update data in a DBMS. [T/F]  In a “two-tier architecture”, in order to increase transaction processing, an application Server is used beside a database server. [T/F]  If the database system is not able to handle the complexity of data because of modeling limitations, it’s enough when no DBMS will use. [T/F]

LOGO  A model serves two primary purposes:  As a true representation of some aspects of the real world, a model enables clearer communication about those aspects of the real world.  A model serves as a blueprint to shape and construct the proposed structures in the real world.  Data modeling is an integral part of the process of designing and developing a data system.  A data model is a device that : [Poniah]  helps the users or stakeholders understand clearly the database system that is being implemented based on the information requirements of an organization, and  enables the database practitioners to implement the database system exactly conforming to the information requirements.  Data models [Silberkatz]  A collection of tools for describing : data, data relationships, data semantics, and data constraints

LOGO  Data model: communication tool and database blueprint.

LOGO  Classification of Information Levels:  Conceptual Level. The highest level consisting of general ideas about the information content  External Level. The data model represents the information requirements for the entire set of user groups in the organization

LOGO  Process creating data model:  Identify business objects  Identify relationships  Add attributes  Assign identifiers  Incorporate business rules  Validate the data model  Significance of data model quality  Data model completeness  Data model correctness

LOGO  Data models characteristic  Involves users  Covers the proper enterprise segments  Uses Accepted Standard Rules and Conventions.  Produces High-Quality Design.  Data system development lifecycle (DDLC)  Starting the process Data-Oriented Approach Development Framework. Initiation Report. Planning Feasibility study  Requirements definition Study overall business operations Observes business processes Understand business units Interview users Determine information requirements Identify data to be collected and stored Establish data access pattern and estimate data volume

LOGO  Design  Implementation

LOGO Slide 2- 9 History of Data Models  Network Model  Hierarchical Model  Relational Model  Object-oriented Data Models  Object-Relational Models

LOGO Slide History of Data Models  Network Model:  The first network DBMS was implemented by Honeywell in (IDS System).  Adopted heavily due to the support by CODASYL (Conference on Data Systems Languages) (CODASYL - DBTG report of 1971).  Later implemented in a large variety of systems - IDMS (Cullinet - now Computer Associates), DMS 1100 (Unisys), IMAGE (H.P. (Hewlett-Packard)), VAX -DBMS (Digital Equipment Corp., next COMPAQ, now H.P.).

LOGO Slide Example of Network Model Schema

LOGO Network Model: Basic Concepts  Data are represented by collections of records.  Records and their fields are represented as record type  Relationships among data are represented by links  restrictions on links depend on whether the relationship is many-many, many-to-one, or one-to- one.

LOGO Slide Network Model  Advantages:  Network Model is able to model complex relationships and represents semantics of add/delete on the relationships.  Can handle most situations for modeling using record types and relationship types.  Language is navigational; uses constructs like FIND, FIND member, FIND owner, FIND NEXT within set, GET, etc. Programmers can do optimal navigation through the database.

LOGO Slide Network Model  Disadvantages:  Navigational and procedural nature of processing  Database contains a complex array of pointers that thread through a set of records. Little scope for automated “query optimization”

LOGO Slide History of Data Models  Hierarchical Data Model:  Initially implemented in a joint effort by IBM and North American Rockwell around Resulted in the IMS family of systems.  IBM’s IMS product had (and still has) a very large customer base worldwide  Hierarchical model was formalized based on the IMS system  Other systems based on this model: System 2k (SAS inc.)

LOGO Slide Hierarchical Model  Advantages:  Simple to construct and operate  Corresponds to a number of natural hierarchically organized domains, e.g., organization (“org”) chart  Language is simple: Uses constructs like GET, GET UNIQUE, GET NEXT, GET NEXT WITHIN PARENT, etc.  Disadvantages:  Navigational and procedural nature of processing  Database is visualized as a linear arrangement of records  Little scope for "query optimization"

LOGO Slide History of Data Models  Relational Model:  Proposed in 1970 by E.F. Codd (IBM), first commercial system in  Now in several commercial products (e.g. DB2, ORACLE, MS SQL Server, SYBASE, INFORMIX).  Several free open source implementations, e.g. MySQL, PostgreSQL  Currently most dominant for developing database applications.  SQL relational standards: SQL-89 (SQL1), SQL-92 (SQL2), SQL-99, SQL3, …

LOGO Slide History of Data Models  Object-oriented Data Models:  Several models have been proposed for implementing in a database system.  One set comprises models of persistent O-O Programming Languages such as C++ (e.g., in OBJECTSTORE or VERSANT), and Smalltalk (e.g., in GEMSTONE).  Additionally, systems like O2, ORION (at MCC - then ITASCA), IRIS (at H.P.- used in Open OODB).  Object Database Standard: ODMG-93, ODMG-version 2.0, ODMG-version 3.0.

LOGO Object Oriented Data Model  An object corresponds to an entity  The object-oriented paradigm is based on encapsulating code and data related to an object into single unit.  The object-oriented data model is a logical data model  Object structure:  A set of variables that contain the data for the object. The value of each variable is itself an object.  A set of messages to which the object responds; each message may have zero, one, or more parameters.  A set of methods, each of which is a body of code to implement a message; a method returns a value as the response to the message

LOGO Slide History of Data Models  Object-Relational Models:  Most Recent Trend. Started with Informix Universal Server.  Relational systems incorporate concepts from object databases leading to object-relational.  Exemplified in the latest versions of Oracle- 10i, DB2, and SQL Server and other DBMSs.  Standards included in SQL-99 and expected to be enhanced in future SQL standards.

LOGO Exercise  Match the column entries