Date: 13/03/2015 Training Reference: 2015 GIS_01 Document Reference: 2015GIS_01/PPT/L4 Issue: 2015/L4/1/V1 Addis Ababa, Ethiopia GIS Data Base Management.

Slides:



Advertisements
Similar presentations
Relational Database and Data Modeling
Advertisements

Information Systems Today: Managing in the Digital World
Relational Database. Relational database: a set of relations Relation: made up of 2 parts: − Schema : specifies the name of relations, plus name and type.
The Relational Database Model
ETEC 100 Information Technology
Database Systems: A Practical Approach to Design, Implementation and Management International Computer Science S. Carolyn Begg, Thomas Connolly Lecture.
Chapter Physical Database Design Methodology Software & Hardware Mapping Logical Design to DBMS Physical Implementation Security Implementation Monitoring.
Database Management: Getting Data Together Chapter 14.
Chapter 3. 2 Chapter 3 - Objectives Terminology of relational model. Terminology of relational model. How tables are used to represent data. How tables.
Physical Database Monitoring and Tuning the Operational System.
Introduction to Structured Query Language (SQL)
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
CSC 2720 Building Web Applications Database and SQL.
1 Chapter 2 Reviewing Tables and Queries. 2 Chapter Objectives Identify the steps required to develop an Access application Specify the characteristics.
The Relational Model Codd (1970): based on set theory Relational model: represents the database as a collection of relations (a table of values --> file)
Data at the Core of the Enterprise. Objectives  Define of database systems  Introduce data modeling and SQL  Discuss emerging requirements of database.
Chapter 17 Methodology – Physical Database Design for Relational Databases Transparencies © Pearson Education Limited 1995, 2005.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Chapter One Overview of Database Objectives: -Introduction -DBMS architecture -Definitions -Data models -DB lifecycle.
IST Databases and DBMSs Todd S. Bacastow January 2005.
Lecture 2 The Relational Model. Objectives Terminology of relational model. How tables are used to represent data. Connection between mathematical relations.
© Pearson Education Limited, Chapter 2 The Relational Model Transparencies.
Chapter 4 The Relational Model.
Data at the Core of the Enterprise. Objectives  Define of database systems.  Introduce data modeling and SQL.  Discuss emerging requirements of database.
Copyright © 2003 by Prentice Hall Module 4 Database Management Systems 1.What is a database? Data hierarchy and data organization Field, record, file,
6-1 DATABASE FUNDAMENTALS Information is everywhere in an organization Information is stored in databases –Database – maintains information about various.
Copyright © 2003 by Prentice Hall Computers: Tools for an Information Age Chapter 13 Database Management Systems: Getting Data Together.
AL-MAAREFA COLLEGE FOR SCIENCE AND TECHNOLOGY INFO 232: DATABASE SYSTEMS CHAPTER 7 INTRODUCTION TO STRUCTURED QUERY LANGUAGE (SQL) Instructor Ms. Arwa.
RAJIKA TANDON DATABASES CSE 781 – Database Management Systems Instructor: Dr. A. Goel.
 Definition  Components  Advantages  Limitations Contents  DBMS DBMS  Functions Functions  Architecture Architecture.
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
Database Technical Session By: Prof. Adarsh Patel.
STORING ORGANIZATIONAL INFORMATION— DATABASES CIS 429—Chapter 7.
Chapter 9 Designing Databases Modern Systems Analysis and Design Sixth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.
Concepts and Terminology Introduction to Database.
Physical Database Design Chapter 6. Physical Design and implementation 1.Translate global logical data model for target DBMS  1.1Design base relations.
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
Lecture 7 Integrity & Veracity UFCE8K-15-M: Data Management.
Discovering Computers Fundamentals Fifth Edition Chapter 9 Database Management.
Professor Michael J. Losacco CIS 1110 – Using Computers Database Management Chapter 9.
1 The Relational Database Model. 2 Learning Objectives Terminology of relational model. How tables are used to represent data. Connection between mathematical.
Storing Organizational Information - Databases
9/7/2012ISC329 Isabelle Bichindaritz1 The Relational Database Model.
7 1 Chapter 7 Introduction to Structured Query Language (SQL) Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Instructor: Dema Alorini Database Fundamentals IS 422 Section: 7|1.
C6 Databases. 2 Traditional file environment Data Redundancy and Inconsistency: –Data redundancy: The presence of duplicate data in multiple data files.
Relational Database. Database Management System (DBMS)
Databases Shortfalls of file management systems Structure of a database Database administration Database Management system Hierarchical Databases Network.
6.1 © 2010 by Prentice Hall 6 Chapter Foundations of Business Intelligence: Databases and Information Management.
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Creating and Maintaining Geographic Databases. Outline Definitions Characteristics of DBMS Types of database Relational model SQL Spatial databases.
Programming Logic and Design Fourth Edition, Comprehensive Chapter 16 Using Relational Databases.
Database Management Supplement 1. 2 I. The Hierarchy of Data Database File (Entity, Table) Record (info for a specific entity, Row) Field (Attribute,
GLOBEX INFOTEK Copyright © 2013 Dr. Emelda Ntinglet-DavisSYSTEMS ANALYSIS AND DESIGN METHODSINTRODUCTORY SESSION EFFECTIVE DATABASE DESIGN for BEGINNERS.
Lection №4 Development of the Relational Databases.
The Relational Model. 2 Relational Model Terminology u A relation is a table with columns and rows. –Only applies to logical structure of the database,
©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-1 Relational Databases.
INFORMATION TECHNOLOGY DATABASE MANAGEMENT. A database is a collection of information organized to provide efficient retrieval. The collected information.
LECTURE TWO Introduction to Databases: Data models Relational database concepts Introduction to DDL & DML.
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 The Relational Model Chapter 3.
Databases and DBMSs Todd S. Bacastow January
Information Systems Today: Managing in the Digital World
Chapter 4 Relational Databases
Translation of ER-diagram into Relational Schema
Databases and Information Management
Relational Databases The Relational Model.
Relational Databases The Relational Model.
Data Model.
Databases and Information Management
Presentation transcript:

Date: 13/03/2015 Training Reference: 2015 GIS_01 Document Reference: 2015GIS_01/PPT/L4 Issue: 2015/L4/1/V1 Addis Ababa, Ethiopia GIS Data Base Management Systems Instructor: Gabriel Parodi Implementation of the Training Strategy of the Monitoring for Environment and Security in Africa (MESA) Programme

NameResponsibility Contributions fromGabriel ParodiLecturer ITC, University of Twente Edited byTesfaye Korme Team Leader and Training Manager, Particip GmbH Reviewed byMartin Gayer Project Manager, Particip GmbH Approved byRobert BrownTechnical development Specialist (TDS),TAT

Short Introduction

GIS chapter 3.4 DBMS  What is a database / DBMS.  Advantages and implications of using a DBMS.  DBMS functionality and architecture.  The relational data model.  Querying a relational database.

Database  Computerised collection of structured data  Electronic filing cabinet  A structured collection of data stored in one or more tables  A database is only successful if it meets the needs of its users

Database management system (DBMS)  Software package that allows the user to set up, create and maintain a database.  A computerised record keeping system whose overall purpose is to maintain data and to make that data available on demand.

Advantages of using a DBMS  DBMS supports data models, a language that allows the definition of the data structure and stores and manipulate very large data sets.  Define integrity constraints to achieve data correctness (obvious errors).  The same data set can be used by many users at the same time (data sharing, concurrency control).  Declarative query language for flexible retrieval of data. (‘what’ but not ‘how’).  A query is a computer program that extracts data form the DB meeting the conditions in the query.  Backup and recovery functions to avoid loss of data.  Avoid unnecessary duplication of data (redundancy).

Implications of using a DBMS  Security restrictions: user privileges and authorisation.  Expert knowledge, high capital investment, overhead  Centralised risk

Functionality of and data model for DBMS  the user of a DBMS can:  add new (empty) files to the database  insert new data into existing files  retrieve data from existing files  update data in existing files  delete data from existing files  remove existing files (empty or otherwise) from the database  but first……. you need a data model

Data models  language to define a database structure and manipulate data  relational data model is most prominently used:  Define database structure: attributes, tuples and relations  Define integrity rules  Define queries (extract without alteration)  transactions (change database contents)

Relations, tuples and attributes relation = table tuple = record attribute = column attribute value Who has borrowed the book of author Burrough?

Relations, tuples and attributes  database: collection of relations / tables  relation is a collection of similarly shaped tuples / records (having the same named attributes)  attribute (a column) is a characteristic of the relation  attribute value has a single domain:  string, date, yes/no, number etc.

to define a relation schema you need to …..  provide a name for the relation  indicate which attributes it will have  define what the domain of each attribute is  Book(BookId: number, Title: string, Author: string, Year:number)  Borrow(BookId: number, StudentId: number, DateBorrowed: date)  Student(StudentId: number, Lastname: string, Initials: string, Programme: string)  relation schema is important part of database design  relation schema is stable, tuples often change  relation instance, database instance  underlined attribute is primary key

Attribute domains  StringE  Numerical  integer255  real  Special  date18/07/2000  memoAt this location we see ….  Location456000, UTM  Booleanyes/no

What is (the use of) a primary key...  definition: one or more attributes (column) that uniquely identifies a tuple (record)  large volumes to find records that match search criteria of data need quick searches (queries)  key should be minimal: consist of as few as possible attributes (columns)  a relation always has a key (unique value)  can Title be the primary key of the Book relation?  could Author ?

Primary Key  What attribute is the primary key of the relation Book?  primary key uniquely identifies each record in a relation

What is (the use of) a foreign key...  used to refer between records of different relations.  It is not a key of the relation in which it appears but is a primary key of another relation.

Finding records and building links Who has borrowed the book of author Burrough?

? Finding records and building links Has Amer borrowed a book?

The three golden rules of data integrity  key uniqueness:  unique identifier, no duplicates within relation  key integrity  primary key value is never null (unknown)  referential integrity  value of a foreign key refers to an existing primary key value in another relation  foreign key values must have current matching primary key values

Database Queries  A database query is a data extraction without changing the database (otherwise we speak of a transaction or an upgrade)  By defining a query we search the database for a subset of records and/or attributes according to conditions defined by the user  To define queries we need a querying language, such as SQL = structured query language

Querying a relational database Basic operators  Tuple or record selection:  It allows tuples that meet the selection condition to pass, and disallows tuples that do not meet the condition.  Attribute projection:  Works like a tuple formatter: it passes through all tuples of the input, but reshapes each pf them in the same way. Produces fewer attributes.  Joining:  Attributes of two relations are matched and ‘glued’ together (foreign key). The number of attributes increases

Record selection Which records satisfy the condition AreaSize > 1000 ? SQL: SELECT* FROMParcel WHEREAreaSize > 100

Attribute projection I only want to see the attribute values of Pld and Location. SQL: SELECTPld, Location FROMParcel

The join operator…. SQL: SELECT* FROMTitleDeed, Parcel WHERETitledeed.Plot = Parcel.Pld I want to see the attributes values of TitleDeed and Parcel together

A combined selection, projection, join query... SELECTOwner, DeedDate FROMTitleDeed, Parcel WHERETitledeed.Plot = Parcel.Pld ANDAreaSize > 1000 I want to see the attributes values of TitleDeed and Parcel together for areas bigger than 1000 Ha.

Queries in GIS  In GIS application we can define spatial queries (where is it?) example: where is my field station number 10 (ST-10)? Lithology, landform, structure, mineralization x = , y =

Queries in GIS  A GIS allows us to combine spatial and non-spatial searches in one query  Example:  Where are the field stations with mineral showings and what kind of mineralization was found at those stations ?

Queries in GIS  SELECT Location, Mineralization  FROM Fieldstations, Samples  WHERE Showing = ‘yes’ REPORT X Y Mineralization Au Pb, Zn Pb, Zn Pb Zn Au Pb Zn MAP

Raster model The entity information is explicitly recorded for a basic data unit (cell, grid or pixel)

Linking spatial and attribute data raster map attribute table

Linking spatial and attribute data vector map attribute table AB F CE A A