Lecture 5 Data Model Design Jeffery S. Horsburgh Hydroinformatics Fall 2012 This work was funded by National Science Foundation Grant EPS 1135482.

Slides:



Advertisements
Similar presentations
Chapter 10: Designing Databases
Advertisements

BUSINESS DRIVEN TECHNOLOGY Plug-In T4 Designing Database Applications.
Databases Revision.
Chapter 17 Designing Databases
Entity-Relationship Model and Diagrams (continued)
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
APPENDIX C DESIGNING DATABASES
Database Design & ER Diagrams
Michael F. Price College of Business Chapter 6: Logical database design and the relational model.
Chapter 14 & 15 Conceptual & Logical Database Design Methodology
The Relational Database Model
1 DATABASE TECHNOLOGIES BUS Abdou Illia, Fall 2007 (Week 3, Tuesday 9/4/2007)
Information storage: Introduction of database 10/7/2004 Xiangming Mu.
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management Dave Salisbury ( )
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
STORING ORGANIZATIONAL INFORMATION— DATABASES CIS 429—Chapter 7.
1 Chapter 1 Overview of Database Concepts. 2 Chapter Objectives Identify the purpose of a database management system (DBMS) Distinguish a field from a.
Concepts and Terminology Introduction to Database.
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
MIS 301 Information Systems in Organizations Dave Salisbury ( )
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
RELATIONSHIPS Generally there are two main database types: flat-file and relational.
MIS 301 Information Systems in Organizations Dave Salisbury ( )
GUS: 0262 Fundamentals of GIS Lecture Presentation 3: Relational Data Model Jeremy Mennis Department of Geography and Urban Studies Temple University.
MS Access: Creating Relational Databases Instructor: Vicki Weidler Assistant: Joaquin Obieta.
Copyright 2008 McGraw-Hill Ryerson 1 TECHNOLOGY PLUG-IN T5 DESIGNING DATABASE APPLICATIONS.
Copyright © Curt Hill The Relational Model of Database Basic organization and terms.
Lecture2: Database Environment Prepared by L. Nouf Almujally & Aisha AlArfaj 1 Ref. Chapter2 College of Computer and Information Sciences - Information.
Chapter 12: Designing Databases
Chapters 15 &16 Conceptual and Logical Database Design Methodology.
Lecture2: Database Environment Prepared by L. Nouf Almujally 1 Ref. Chapter2 Lecture2.
Chapter 1Introduction to Oracle9i: SQL1 Chapter 1 Overview of Database Concepts.
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.
CIS 210 Systems Analysis and Development Week 6 Part II Designing Databases,
Databases Shortfalls of file management systems Structure of a database Database administration Database Management system Hierarchical Databases Network.
Prepared By Prepared By : VINAY ALEXANDER ( विनय अलेक्सजेंड़र ) PGT(CS),KV JHAGRAKHAND.
© 2005 by Prentice Hall 1 The Database Development Process Dr. Emad M. Alsukhni The Database Development Process Dr. Emad M. Alsukhni Modern Database Management.
Access Review. Access Access is a database application A database is a collection of records and files organized for a particular purpose Access supports.
Jozef Kuper.  Describe a Database  Entities  Atributes  Relationships.
In this session, you will learn to: Map an ER diagram to a table Objectives.
Chapter 13 Designing Databases Systems Analysis and Design Kendall & Kendall Sixth Edition.
Relational Theory and Design
Database Design – Lecture 4 Conceptual Data Modeling.
BSA206 Database Management Systems Lecture 2: Introduction to Oracle / Overview of Database Concepts.
Chapter 15 & 16 Conceptual and Logical Database Design Methodology Thomas Connolly, Carolyn Begg, Database System, A Practical Approach to Design Implementation.
1 DATABASE TECHNOLOGIES (Part 2) BUS Abdou Illia, Fall 2015 (September 9, 2015)
Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
1 ER Modeling BUAD/American University Mapping ER modeling to Relationships.
3/6: Data Management, pt. 2 Refresh your memory Relational Data Model
Data Model / Database Implementation (continued) Jeffery S. Horsburgh Hydroinformatics Fall 2014 This work was funded by National Science Foundation Grants.
Entity-Relationship Diagram Presentation Gianna-lee Williams 6AQ Ms. Anderson.
1 10 Systems Analysis and Design in a Changing World, 2 nd Edition, Satzinger, Jackson, & Burd Chapter 10 Designing Databases.
Data Modeling AND ER MODELS.
What Is Normalization  In relational database design, the process of organizing data to minimize redundancy  Usually involves dividing a database into.
Welcome: To the fifth learning sequence “ Data Models “ Recap : In the previous learning sequence, we discussed The Database concepts. Present learning:
IT 5433 LM3 Relational Data Model. Learning Objectives: List the 5 properties of relations List the properties of a candidate key, primary key and foreign.
1 of 42 Lecture 5 Data Model Design Jeffery S. Horsburgh Hydroinformatics Fall 2013 This work was funded by National Science Foundation Grants EPS
Jeffery S. Horsburgh Hydroinformatics Fall 2014
- The most common types of data models.
Lecture 6 Data Model Design (continued)
Lecture 8 Database Implementation
Databases and Database Management Systems Chapter 9
Data Models.
CIS 207 The Relational Database Model
Chapter 4 Relational Databases
Database.
Data Model.
Presentation transcript:

Lecture 5 Data Model Design Jeffery S. Horsburgh Hydroinformatics Fall 2012 This work was funded by National Science Foundation Grant EPS

Objectives Identify and describe important entities and relationships to model data Develop data models to represent, organize, and store data Design and use relational databases to organize, store, and manipulate data

Data Model Requirements What is the information/data domain that you are modeling? What are the 20 queries that you want to do? – e.g., “Give me simultaneous observations of turbidity and TSS collected during the spring snowmelt period so I can develop a regression in R.” What software do you want (have) to use? How do you want to share the data?

Hydrologic Time Series An organization operates a network of monitoring sites. At each site they collect data for a number of data series, and each series contains a time series of observed values

Data Model Design Our focus – relational data model design Three stages: – Conceptual data model – Logical data model – Physical data model

Conceptual Data Model High-level description of the data domain Does not constrain how that description is mapped to an actual implementation in software There may be many mappings – Relational database – Object model – XML schema, etc.

Conceptual Data Model Technology independent Defines scope of the domain Defines and organizes data requirements Defines entities and relationships among them Site TimeSeries DataValues 1 1 * *

Logical Data Model Technology independent Contains more detail than the Conceptual Data Model Considered by many to be just an expanded conceptual data model Defines – Entities AND their attributes – Relationships AND cardinality – Constraints Generally completed as a documented Entity Relationship (ER) diagram

Example: ODM Logical Data Model

Physical Data Model The physical means to implement the data model – Choice of relational database management system – Implementation of tables, relationships, constraints, triggers, indices, data types – Database access – Performance – Storage

Steps in Data Model Design 1.Identify entities 2.Identify relationships among entities 3.Determine the directionality and cardinality of relationships 4.List attributes of entities 5.Designate keys / identifiers for entities 6.Identify constraints and business rules 7.Map 1-6 to a physical implementation

Entity Relationship Diagram Entities effectively become tables Attributes describe entities and become fields (columns) in tables Relationships link tables and become formal constraints

Relationships and Cardinality Relationships link one entity / table to another on a common attribute or “key” Cardinality defines how relationships link one table to another – 1..1 One-to-one – 1..* One-to-many – *..* Many-to-many

Relationship Examples A site has 1 or more time series A variable has 1 or more time series A time series has 1 or more data values A data value has 0 or more qualifiers, a qualifier may apply to 0 or more values SiteTimeSeries 1 * VariableTimeSeries 1 * DataValues 1 * Qualifiers * *

Primary and Foreign Keys Each row in a table should have an attribute that is a persistent, unique identifier Primary key in “parent” table Foreign key in “child” table 1 * * 1

Normalization Organizing the fields and tables in a relational database to minimize redundancy and dependency – Dividing large tables into smaller tables (with relationships) Isolate data so that additions, deletions, and modifications of a field or record can be made in one place Reduce the need for restructuring the database as new types of data are introduced

Normalization Example SiteIDSiteNameVariableIDVariableNameDateTimeValue 1Logan River1Temperature1/1/ Logan River1Temperature1/2/ Logan River2pH1/1/ Logan River2pH1/2/ Spring Creek1Temperature1/1/ Spring Creek1Temperature1/2/ Spring Creek2pH1/1/ Spring Creek2pH1/2/

Normalization Example SiteIDVariableIDDateTimeValue 111/1/ /2/ /1/ /2/ /1/ /2/ /1/ /2/ SiteIDSiteName 1Logan River 2Spring Creek VariableIDVariableName 1Temperature 2pH 1 1 **

ILO-2 Data Multiple Sites One file per site Multiple Sensors at Each Site 1 or More Time Series Per Sensor