Welcome: To the fifth learning sequence “ Data Models “ Recap : In the previous learning sequence, we discussed The Database concepts. Present learning:

Slides:



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

Database Systems: Design, Implementation, and Management Tenth Edition
Database Systems: Design, Implementation, and Management Ninth Edition
The database approach to data management provides significant advantages over the traditional file-based approach Define general data management concepts.
Chapter 2 Database System Concepts and Architecture
1 Chapter 2 Database Environment Transparencies © Pearson Education Limited 1995, 2005.
Chapter 2 Database Environment.
Data Management I DBMS Relational Systems. Overview u Introduction u DBMS –components –types u Relational Model –characteristics –implementation u Physical.
Introduction to Databases Transparencies
ICS (072)Database Systems Background Review 1 Database Systems Background Review Dr. Muhammad Shafique.
1 Chapter 2 Database Environment. 2 Objectives of Three-Level Architecture u All users should be able to access same data u User’s view immune to changes.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Lecture Two Database Environment Based on Chapter Two of this book:
Academic Year 2014 Spring.
1 Chapter 2 Database Environment. 2 Chapter 2 - Objectives u Purpose of three-level database architecture. u Contents of external, conceptual, and internal.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Trisha Cummings.  Most people involved in application development follow some kind of methodology.  A methodology is a prescribed set of processes through.
Database Environment 1.  Purpose of three-level database architecture.  Contents of external, conceptual, and internal levels.  Purpose of external/conceptual.
Database System Concepts and Architecture Lecture # 3 22 June 2012 National University of Computer and Emerging Sciences.
Information storage: Introduction of database 10/7/2004 Xiangming Mu.
Chapter 5 Lecture 2. Principles of Information Systems2 Objectives Understand Data definition language (DDL) and data dictionary Learn about popular DBMSs.
Chapter 2 CIS Sungchul Hong
CSC271 Database Systems Lecture # 4.
2 1 Chapter 2 Data Models Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Database System Concepts and Architecture Lecture # 2 21 June 2012 National University of Computer and Emerging Sciences.
Introduction to Database Systems
2. Database System Concepts and Architecture
Introduction to CO22001 Chapter 1.2 (First Lecture) V3.0 Napier University Dr Gordon Russell.
Lecture2: Database Environment Prepared by L. Nouf Almujally & Aisha AlArfaj 1 Ref. Chapter2 College of Computer and Information Sciences - Information.
Oleh Munawar Asikin. Principles of Information Systems, Seventh Edition 2  Database management system (DBMS): group of programs that manipulate database.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
Ihr Logo Fundamentals of Database Systems Fourth Edition El Masri & Navathe Chapter 2 Database System Concepts and Architecture.
Lecture2: Database Environment Prepared by L. Nouf Almujally 1 Ref. Chapter2 Lecture2.
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
Lesson Overview 3.1 Components of the DBMS 3.1 Components of the DBMS 3.2 Components of The Database Application 3.2 Components of The Database Application.
Database Systems DBMS Environment Data Abstraction.
Prepared By Prepared By : VINAY ALEXANDER ( विनय अलेक्सजेंड़र ) PGT(CS),KV JHAGRAKHAND.
8/31/2012ISC329 Isabelle Bichindaritz1 Database Environment.
Database Environment Chapter 2. Data Independence Sometimes the way data are physically organized depends on the requirements of the application. Result:
1Mr.Mohammed Abu Roqyah. Database System Concepts and Architecture 2Mr.Mohammed Abu Roqyah.
Database Environment Session 2 Course Name: Database System Year : 2013.
DATABASE MANAGEMENT SYSTEM ARCHITECTURE
1 Chapter 1 Introduction to Databases Transparencies.
DataBase System Concepts and Architecture
Dr Gordon Russell, Napier University Unit Introduction 1 Introduction to CO22001 Unit 1.1.
1 Database Environment. 2 Objectives of Three-Level Architecture u All users should be able to access same data. u A user’s view is immune to changes.
1 Chapter 2 Database Environment Pearson Education © 2009.
Database Environment Chapter 2. The Three-Level ANSI-SPARC Architecture External Level Conceptual Level Internal Level Physical Data.
LECTURE TWO Introduction to Databases: Data models Relational database concepts Introduction to DDL & DML.
Data Models. 2 The Importance of Data Models Data models –Relatively simple representations, usually graphical, of complex real-world data structures.
- The most common types of data models.
國立臺北科技大學 課程:資料庫系統 Chapter 2 Database Environment.
REV 00 Chapter 2 Database Environment DDC DATABASE SYSTEM.
Architecture & Data Models
REV 00 Chapter 2 Database Environment DDC DATABASE SYSTEM.
Chapter 2 Database Environment.
Database Management System
Data Models.
Chapter 4 Relational Databases
Chapter 2 Database Environment.
Introduction to Database Management System
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 2 Database Environment.
Data Base System Lecture : Database Environment
Database.
Data Model.
Data Models.
Chapter 2 Database Environment Pearson Education © 2014.
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 2 Database Environment Pearson Education © 2009.
Presentation transcript:

Welcome: To the fifth learning sequence “ Data Models “ Recap : In the previous learning sequence, we discussed The Database concepts. Present learning: We shall explore the following topic: - The most common types of data models.

Data Models The goal of the data model is to make sure that the all data objects required by the database are completely and accurately represented.

Data Models Importance Data modeling is probably the most intensive and time consuming part of the development process Building a database without a model is like building a house without plans

Data Models Because the data model uses easily understood notations and natural language it can be reviewed and verified by end-users Detailed enough to be used by the database developers to use as a blueprint for building the physical database

Data Models The information contained in the data model will be used to define the relational tables primary and foreign keys stored procedures and triggers A poorly designed database will require more time in the long-term.

Data Models Model : as description or analogy used to visualized something that be directly observed. Data model: a collection of concepts that can be used to describe the structure of a database provides the necessary means to achieve this abstraction, by structure of a database, we mean the data types, relationships, and constraints that should hold for the data. Most data models also include a set of basic operations for specifying retrievals and updates on the database.

Data Models Some types of data model : Hierarchical Model * Network Models * Relational Models * * Object-Oriented Model * Object-Relational Model * NoSQL Model * XML Model

Data Models The hierarchical data models organizes data in a tree structure. There is a hierarchy of parent and child data segments, this structure implies that a record can have repeating information, generally in the child data segments, data in a series of records, which have a set of field values attached to it.

Data Models Network data model : The popularity of the network data model coincided with the popularity of the hierarchical data model. Some data were more naturally modeled with more than one parent per child, so the network model permitted the modeling of many -to-many relationships in data.

Data Models Relational data model : A relational database allows the definition of data structures, storage and retrieval operations and integrity constraints, in such a database the data and relations between them are organized in tables. A table is a collection of records and each record in a table contains the same fields.

Data Models Object-Oriented data Model : Object DBMSs add database functionality to object programming languages, they bring much more than persistent storage of programming language objects. Object DBMSs extend the semantics of the C++, smalltalk and java object programming languages to provide full-featured database programming capability, while retaining native language compatibility.

Data Models The American National Standards Institute / Standard Planning And Requirement Comment (ANSI / SPARC) define 3 degrees of abstraction as illustrated in Figure 1.

Data Models The architecture is divided in to three general levels: 1- External levels This level is concerned with the way in which the data is viewed by individual users i.e (logical storage). 2- Internal levels This level is concerned with the way in which the data is actually stored i.e (physical storage). 3- Conceptual level It is the level of indirection between the other two levels (External & Internal levels).

ANSI/SPARC Language Workspace Language Workspace Language Workspace Language Workspace Language Workspace User A1 User A2User B1User B2 User B3 External Model A External Model B Conceptual Model DDMS Stored database (Internal Model). Ext./Con. Mapping A Ext./Con. Mapping B Con./Int. Mapping Ext. Schema A Ext. Schema B Conc. Schema Inte. Schema Data Base Administrator (DBA) ** * User interface Fig.1: An Architecture for Database System

ANSI/SPARC -- Each user of a database system has a language of his or her disposal. What is important about the used language is that it will include a Data SubLanguage (DSL), which is that subset of the language concerned with database objects and operations. -- Any given DSL is really a combination of: 1- Data Definition Language DDL, when provides for the definition of a database objects. 2- Data Manipulation Language DML, which supports the manipulation or processing of those objects. 3- Structured Query Language SQL, which supports displaying and retrieving database objects. - Each user provided with a workspace, which acts as receiving or transmitting area between the user and the database.

ANSI/SPARC -The user is said to view the database by means of an external model. Each external model is defined by means of an external schema, which consists of description each of the various types of external record in that external model. -The conceptual model is a representation of the entire information of the database, which defined by means of the conceptual schema, that includes definitions of various types of conceptual record. - The internal level consists of multiple occurrence of multiple type of stored records, and is described by means of internal schema, which also specifies what indexes exists, and how stored fields are represented, and so on.

Data Models Categories of data models : Conceptual data models : these models, sometimes called domain models, are typically used to identify and document business (domain) concepts with project stakeholders. Conceptual data models are often created as the precursor to logical data models (LDMs) or as alternatives to LDMs.

Data Models Logical data models (LDMs) : logical data models are used to further explore the domain concepts, and their relationships and relationship cardinalities. This could be done for the scope of a single project or for your entire enterprise. Logical data models depict the logical entity types, typically referred to simply as entity types, the data attributes describing those entities, DDL can be generated at this level.

Data Models Physical data models (PDMs) : physical data models are used to design the internal schema of a database, depicting the data tables (derived from the logical data entities), the data columns of those tables (derived from the entity attributes), and the relationships between the tables derived from the entity relationships.

Data Models Major event in data model include : - Identifying the data and associated processes. - Defining the data (such as data types, sizes, and defaults). - Specifying data storage requirements. - Defining the data management processes (such as security reviews and backups. - Ensuring data integrity (by using business rules and validation checks).

Data Models Summary: In this learning sequence, we discussed the best common types of data models.

Data Models end