Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University Database Design Peter McCartney (CAP) RDIFS Training Workshop Sevilleta.

Slides:



Advertisements
Similar presentations
Three-Step Database Design
Advertisements

Chapter 10: Designing Databases
Data Bits Models Classes & Schemes Rows & Tables Keys Associations $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 Final DataBit.
Data Models There are 3 parts to a GIS: GUI Tools
The Hierarchical Model
Database Processing: Fundamentals, Design, and Implementation, 9/e by David M. KroenkeChapter 5/1 Copyright © 2004 Please……. No Food Or Drink in the class.
GI Systems and Science January 30, Points to Cover  Recap of what we covered so far  A concept of database Database Management System (DBMS) 
Fundamentals, Design, and Implementation, 9/e COS 346 Day 8.
Chapter Physical Database Design Methodology Software & Hardware Mapping Logical Design to DBMS Physical Implementation Security Implementation Monitoring.
Systems Analysis Requirements structuring Process Modeling Logic Modeling Data Modeling  Represents the contents and structure of the DFD’s data flows.
Fundamentals, Design, and Implementation, 9/e Chapter 5 Database Design.
Relational Model Stores data as tables –Each column contains values about the same attribute –Each column has a distinct name –Each row contains values.
Chapter 17 Designing Databases
The Relational Database Model:
Geographic Information Systems
Modeling & Designing the Database
File and Database Design; Logic Modeling Class 24.
Transforming Data Models into Database Designs
BIS310: Week 7 BIS310: Structured Analysis and Design Data Modeling and Database Design.
Chapter 14 & 15 Conceptual & Logical Database Design Methodology
Entity-Relationship Design
IST Databases and DBMSs Todd S. Bacastow January 2005.
Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University Data Entry Applications Peter McCartney (CAP) RDIFS Training Workshop.
Chapters 17 & 18 Physical Database Design Methodology.
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
Database Technical Session By: Prof. Adarsh Patel.
1 Introduction to Database Systems. 2 Database and Database System / A database is a shared collection of logically related data designed to meet the.
9/14/2012ISC329 Isabelle Bichindaritz1 Database System Life Cycle.
CSCI 3140 Module 2 – Conceptual Database Design Theodore Chiasson Dalhousie University.
Concepts and Terminology Introduction to Database.
TM 7-1 Copyright © 1999 Addison Wesley Longman, Inc. Physical Database Design.
MIS 301 Information Systems in Organizations Dave Salisbury ( )
MIS 301 Information Systems in Organizations Dave Salisbury ( )
Normalization (Codd, 1972) Practical Information For Real World Database Design.
1/26/2004TCSS545A Isabelle Bichindaritz1 Database Management Systems Design Methodology.
1.file. 2.database. 3.entity. 4.record. 5.attribute. When working with a database, a group of related fields comprises a(n)…
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.
Relational Database: RDB Concepts
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Database Application Design and Data Integrity AIMS 3710 R. Nakatsu.
Data Driven Designs 99% of enterprise applications operate on database data or at least interface databases. Most common DBMS are Microsoft SQL Server,
Chapter 13 Designing Databases Systems Analysis and Design Kendall & Kendall Sixth Edition.
Relational Theory and Design
Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University Data Query Peter McCartney RDIFS Training Workshop Sevilleta LTER.
Information Access Mgt09/12/971 Entity-Relationship Design Information Level Design.
MIS 301 Information Systems in Organizations Dave Salisbury ( )
Constraints Lesson 8. Skills Matrix Constraints Domain Integrity: A domain refers to a column in a table. Domain integrity includes data types, rules,
Session 1 Module 1: Introduction to Data Integrity
Chapter 3: Relational Databases
Chapter 3 The Relational Database Model. Database Systems, 10th Edition 2 * Relational model * View data logically rather than physically * Table * Structural.
Logical Database Design and Relation Data Model Muhammad Nasir
Constraints Advanced Database Systems Dr. AlaaEddin Almabhouh.
Lecture 5 Data Model Design Jeffery S. Horsburgh Hydroinformatics Fall 2012 This work was funded by National Science Foundation Grant EPS
1 Agenda TMA02 M876 Block 4. 2 Model of database development data requirements conceptual data model logical schema schema and database establishing requirements.
Data Integrity & Indexes / Session 1/ 1 of 37 Session 1 Module 1: Introduction to Data Integrity Module 2: Introduction to Indexes.
1 SQL SERVER 2005 Express CE-105 SPRING 2007 Engr. Faisal ur Rehman.
Databases and DBMSs Todd S. Bacastow January
Logical Database Design and the Rational Model
Chapter 5 Database Design
Physical Structure of GDB
Geographic Information Systems
COS 346 Day 8.
Teaching slides Chapter 8.
Physical Database Design
Guide to Modeling Keys to E-R diagrams.
Chapter 17 Designing Databases
Guide to Modeling Keys to E-R diagrams.
Presentation transcript:

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University Database Design Peter McCartney (CAP) RDIFS Training Workshop Sevilleta LTER October 28-30, 2002

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University Two Perspectives on Design Field researcher –Goal is to facilitate entry and analysis of what they observed –Tend emphasize information that discriminates between cases –Data collection dictates design Data analyst –goal is to retrieve what they are looking for –Tend to emphasize information that aggregates cases –Data use dictates design

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University Two Interfaces Field forms –Organized by sampling events –Hierarchical Analysis and reporting –Matrix (“flat file”) structure –Aggregated or transformed values ( sums, z-scores, etc) –Encoded or decoded

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University The Data Cycle RDBMS Storage ILSDFWEWFDSF FWEFSDFWE DIFJDISLDIJFS SDFSDFSDFSDIMLMKM FSMDSID MLSDIFMSLDFI SDFSDFSL LSIDFSLDFM JIJIJIJLSDIFS Sdfsdfsdfs dfsdfs 8989 sdfsdfsdsdfsd 90 sdfsdsd 4004 dfsdfsdfsdfsdfs dfsd Query Analysis QA/QC Data Entry DenormalizedNormalized Site, Type,Sample, date,taxon 1A, urb, 1,2/2/99, 145 1A, urb, 1, 2/2/99, 123 1A, ag, 2, 2/3/99, 145 …..1..A

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University Normalization Information does not repeat Every row can be uniquely referenced Attributes are independent Attributes convey only one piece of information Each piece of information is expressed in only one attribute

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University Denormalization You can take a good thing too far Large numbers of tables with small amount of data will degrade performance and be difficult to read Denormalize to avoid excessive links

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University Data Modeling Concentrate on logical design – independent of vendor Entity-Relationship (ER) diagram –Relational databases –Tables=entities, columns=attributes, keys=relationships, code=procedures

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University Entities - Tables Two dimensional matrix – fields and observations Should contain discrete attributes of information that repeat together as a group – use protocol as guide The majority of ecological datasets will have at least three entities –Site description (occurs once for each site) –Sample description (occurs each time a site is sampled) –Observations (occurs once for each observation made during a sample event)

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University Attributes Data types –storage capacity –Precision –Performance Avoid dependencies –Do not make the meaning of one attribute conditional on another Avoid nesting –Do not restrict the domain of one attribute based on the value of another

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University Attribute properties Indexes –Primary Key –Alternate Key –Foreign key –Inversion key Null/not null Default value Assignment –Identity –Production rules Check Constraints

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University Attribute Domains Measurement scale Units Storage types Domains –Ranges –Enumerations –Rules

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University Relationships (join conditions) Cardinality –Parent occurrences –Child occurrences properties –Propagating Enforcement –Keys –Triggers

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University Some design considerations Use related tables to define domains if list is long and may grow, constraints if list is short Use alternate keys to enforce complicated nested identifiers, hidden primary keys for linking

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University Spatial data Most ecological data have some spatial context –Some are just poorly referenced –Some gain spatial context through relationships GIS systems –Powerful for storing and analyzing spatial geometry –Not so good for managing data

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University Spatial Data Entities Vector GIS –Attribute table with all the properties of Tables –Plus some association with a geometric representation –Geometry may be simple or complex Raster GIS –Cell attribute with similar properties View, Stored Procedures –Return tabular entities

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University Strategies for integrating spatial data Use a GIS rather than a database –Advisable only if attribute data are minimal and flat Hybrid GIS/relational database –Store geometries (points, lines, polygons) in a GIS. –Use a key field to relate geometries to tables in your database Use a spatial data server –Stores gis geometries in binary fields in your database –Uses special software to access spatial and non-spatial data in the same connection