GIS Concepts ‣ What is a table? What is a table? ‣ Queries on tables Queries on tables ‣ Joining and relating tables Joining and relating tables ‣ Summary.

Slides:



Advertisements
Similar presentations
Introduction to Databases
Advertisements

Information Systems Chapter 2 Organizing Data and Information.
Return to Outline Copyright © 2009 by Maribeth H. Price 6-1 Chapter 6 Spatial Joins.
Chapter 3 Database Management
Database Design Concepts Info1408
3-1 Chapter 3 Data and Knowledge Management
Chapter 11 Data Management Layer Design
Querying a Database Microsoft Office Access 2003.
Attribute databases. GIS Definition Diagram Output Query Results.
Prevalent Database Models (Advantages of a database over flat files)
Management Information Systems MS Access 2003 By: Mr. Imdadullah Lecturer, Department of M.I.S. College of Business Administration, KSU.
Attribute Data Input and Management
WHAT IS A DATABASE ? a collection of data organized to help easy retrieval & usage.
Information systems and databases Database information systems Read the textbook: Chapter 2: Information systems and databases FOR MORE INFO...
Lesson 32: Designing a Relational Database. 2 Lesson Objectives After studying this lesson, you will be able to:  Identify and apply principles for good.
MS Access 2007 IT User Services - University of Delaware.
DATA, DATABASES, AND QUERIES Managing Data in Relational Databases CS1100Microsoft Access - Introduction1.
IST Databases and DBMSs Todd S. Bacastow January 2005.
Computing for Bioinformatics Introduction to databases What is a database? Database system components Data types DBMS architectures DBMS systems available.
Database System Concepts and Architecture Lecture # 3 22 June 2012 National University of Computer and Emerging Sciences.
Module Title? DBMS E-R Model to Relational Model.
5.1 © 2007 by Prentice Hall 5 Chapter Foundations of Business Intelligence: Databases and Information Management.
Attribute Data in GIS Data in GIS are stored as features AND tabular info Tabular information can be associated with features OR Tabular data may NOT be.
Databases C HAPTER Chapter 10: Databases2 Databases and Structured Fields  A database is a collection of information –Typically stored as computer.
Copyright © 2003 by Prentice Hall Module 4 Database Management Systems 1.What is a database? Data hierarchy and data organization Field, record, file,
Copyright © 2003 by Prentice Hall Computers: Tools for an Information Age Chapter 13 Database Management Systems: Getting Data Together.
GIS 1 GIS Lecture 4 Geodatabases. GIS 2 Outline Administrative Data Example Data Tables Data Joins Common Datasets Spatial Joins ArcCatalog Geodatabases.
Learningcomputer.com SQL Server 2008 – Entity Relationships in a Database.
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
Information Systems: Databases Define the role of general information systems Describe the elements of a database management system (DBMS) Describe the.
Microsoft Access 2003 Define some key Access terminology: Field – A single characteristic or attribute of a person, place, object, event, or idea. Record.
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
6 Chapter Databases and Information Management. File Organization Terms and Concepts Bit: Smallest unit of data; binary digit (0,1) Byte: Group of bits.
Management Information Systems MS Access MS Access is an application software that facilitates us to create Database Management Systems (DBMS)
Chapter 3-1 Ch. 3 –Data Modeling Designing an efficient and effective database that meets users’ needs.
Databases Topic 4 Text Materials Chapter 3 – Databases and Data Warehouses.
Copyright © 2006 by Maribeth H. Price 7-1 Lesson 7 Spatial Joins.
MS Access 2007 Management Information Systems 1. Overview 2  What is MS Access?  Access Terminology  Access Window  Database Window  Create New Database.
C6 Databases. 2 Traditional file environment Data Redundancy and Inconsistency: –Data redundancy: The presence of duplicate data in multiple data files.
1 Database Concepts 2 Definition of a Database An organized Collection Of related records.
GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University.
EAK 362/2 MIS LECTURE 4 PART 2 Managing Databases.
6.1 © 2010 by Prentice Hall 6 Chapter Foundations of Business Intelligence: Databases and Information Management.
Microsoft Access 2013 ®® Tutorial 9 Using Action Queries and Advanced Table Relationships.
Copyright © 2006 by Maribeth H. Price 5-1 Chapter 5 Working with Tables.
Pasewark & Pasewark 1 Access Lesson 3 Creating Queries Microsoft Office 2007: Introductory.
Database revision.
Queries Select by Attribute Select by Location. What is a Query? A query extracts information from a data table for further use –Once extracted you can:
Copyright © 2006 by Maribeth H. Price 6-1 Chapter 6 Queries.
GIS Data Models GEOG 370 Christine Erlien, Instructor.
Programming Logic and Design Fourth Edition, Comprehensive Chapter 16 Using Relational Databases.
Intro to GIS | Summer 2012 Attribute Tables – Part 1.
Database Management Systems (DBMS)
Lesson 2: Designing a Database and Creating Tables.
Return to Outline Copyright © 2009 by Maribeth H. Price 4-1 Chapter 4 Attribute Data.
DATA Spatial Data – where things are Non Spatial Data or Attribute Data – What things are Data in a computer database are managed and accessed through.
IST 220 – Intro to Databases Lecture 2 Touring Microsoft Access.
NSF DUE ; Wen M. Andrews J. Sargeant Reynolds Community College Richmond, Virginia.
© 2003 Prentice Hall, Inc.3-1 Chapter 3 Database Management Information Systems Today Leonard Jessup and Joseph Valacich.
Return to Outline Copyright © 2009 by Maribeth H. Price 5-1 Chapter 5 Queries.
Chapter 6. Attribute Data & Tables. Table terminology Title Field Records Each field is specifically defined and established before any data can be entered.
Chapter 8- Queries What are queries? Extract certain records from a map or table Records meet certain criteria –Aspatial queries All parcels with value.
XP Chapter 1 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Level 2 Objectives: Understanding and Creating Table.
NSF DUE ; Chérie Aukland. NSF DUE ; GeoTEd Partners.
Databases and DBMSs Todd S. Bacastow January
Chapter 5 Queries.
Chapter 4 Attribute Data.
Database.
Mastering ArcGIS Chapter 7 Queries.
Presentation transcript:

GIS Concepts ‣ What is a table? What is a table? ‣ Queries on tables Queries on tables ‣ Joining and relating tables Joining and relating tables ‣ Summary statistics Summary statistics ‣ Database storage concepts Database storage concepts

Table terminology Title Field Records Each field is specifically defined and established before any data can be entered. Field definitions control the type of data that can be stored in a field.

Types of tables ‣ Attribute table Stores attributes of map features Associated with a spatial data layer Has special fields for spatial information ‣ Standalone table Stores any tabular data Not associated with spatial data OID instead of FID

Database Management Systems (DBMS) ‣ Dedicated systems for managing many data tables ‣ Serve data for large organizations E.g., agencies, universities, companies, etc. ‣ Handles multi-user environments ‣ Provides enhanced security ‣ Often provide data management and analysis tools E.g., querying, reporting, graphing, etc. ‣ Examples: Oracle, SQL Server, etc.

Flat file DBMS ‣ Flat file Stores data as rows of information in files Simple and robust Inefficient for search and query Service calls Customers Electric usage Service personnel

Hierarchical DBMS ‣ Stores data in multiple tables ‣ Tables have defined parent- child relationships ‣ Pre-set hierarchy of table relationships designed for specific queries ‣ Very efficient for specific queries ‣ Range of queries limited by structure Service calls Customers Electric usage Service personnel Billing history Customer ID Employee ID Customer ID

Relational DBMS ‣ Stores data in multiple tables ‣ Table relationships are defined as needed ‣ Very flexible ‣ Ideal for open-ended applications when queries not known beforehand ‣ Most common type used in GIS applications Customers Electric usage Service calls Service personnel Billing history Customer ID Employee ID

Table Querying ‣ Queries select or extract records from a table based on specified conditions Students with GPA > 3.5? States with population > 1 million? Counties with greater population in 1990 than in 2000? Customers with last names beginning with “Mac” or “Mc”?

SQL: Structured Query Language ‣ Common query language ‣ Used in many DBMS environments ‣ Queries can be saved and reused ‣ Notes Nearly always case-sensitive Easy to learn

SQL Query Examples Some Valid Queries SELECT *FROM cities WHERE "POP1990" >= SELECT *FROM counties WHERE “BEEFCOW_92” < “BEEFCOW_87” SELECT *FROM parcels WHERE “LU-CODE” = 42 AND “VALUE” > SELECT *FROM rentals WHERE “RENT” > 700 AND “RENT” < 1500 Programs may have an interface to help users build SQL expressions In most databases, SQL expressions are case-sensitive “Smith” ≠ “SMITH”

Multiple Criteria Queries ‣ Multiple criteria queries using AND or OR “STATE” = ‘Alabama’ OR “STATE” = ‘Texas’ [Value] > 5000 AND [Value] < Note that the field name must be repeated for each condition

Searching for partial matches ‣ Sometimes you need to find one string within another rather than an exact match Find all customer names beginning with “Mac” or “Mc” Find all zip codes beginning with 0 ‣ Typically uses a “wildcard” character *Mac* or *Mc* 0*

The Like Operator (Depends on data file type) ‣ “NAME” LIKE ‘%(D)%’ Finds all of the (D) Democrats ‣ % is wildcard ‣ Ignores Don or Danforth ‣ “NAME” LIKE ‘%New %’ Would find New Hampshire and New York, but not Newcastle or Kennewick

Query results ‣ A set of selected records that meet the criteria ‣ Subsequent queries may use only selected records and ignore others ‣ One might… Export the selected records to a new table Calculate statistics on the selected records Calculate new values for the selected records Produce a report based on the selected records

Joining tables Destination tableSource table Common field

Join facts ‣ Tables must share a common field (key) ‣ Treats the two tables as a single table ‣ Temporary relationships between tables Original stored data is not affected Can be removed when no longer needed

One-to-one joins When each record in the destination table matches exactly one record in the source table, we call it a cardinality of one-to-one. Destination table (always imagine on the left) Source table (always imagine on the right)

Types of Cardinality ‣ One-to-one States to Governors Husbands to wives ‣ One-to-many States to cities Districts to schools Many to one Cities to states Schools to districts Many-to-many Students to classes Stores to customers In evaluating cardinality, always put the destination first. (Destination on the left)

Rule of Joining Each record in the destination table must match one and only one record in the source table. One to one Destination tableSource table Many to one

One to many (When a Relate is better) Destination tableSource table ? Violates the Rule of Joining Record to which to join to destination is ambiguous Must use a relate instead

Relates ‣ Similar to a join except that The tables remain separate Items selected in one table may be highlighted in the related table

Related tables Select the New England states Find reps of New England states