Chapter 4 Attribute Data.

Slides:



Advertisements
Similar presentations
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies,
Advertisements

Concepts of Database Management Seventh Edition
Concepts of Database Management Sixth Edition
Concepts of Database Management Seventh Edition
Geodatabase basic. The geodatabase The geodatabase is a collection of geographic datasets of various types used in ArcGIS and managed in either a file.
Introduction to Database Systems
Introduction to ArcGIS for Environmental Scientists Module 2 – Fundamentals Lecture 6 – Table Functions.
Concepts of Database Management, Fifth Edition
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.
Working with Tables Lesson 5 of Introduction to ArcGIS for Emergency Managers.
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.
Concepts of Database Management, Fifth Edition Chapter 4: The Relational Model 3: Advanced Topics.
Inner Join vs. Outer Join
Concepts of Database Management Seventh Edition
Data Structure & File Systems Hun Myoung Park, Ph.D., Public Management and Policy Analysis Program Graduate School of International Relations International.
GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University.
ACCESS CHAPTER 4 Tables and Queries Learning Objectives: Define table structure Enter data into a table Alter table structure Set a table’s field properties.
Data Queries Selecting features in ArcMap Data queries  Important part of a GIS project Can be a part of your data preparation or final analysis  Data.
Database Management Systems.  Database management system (DBMS)  Store large collections of data  Organize the data  Becomes a data storage system.
6.1 © 2010 by Prentice Hall 6 Chapter Foundations of Business Intelligence: Databases and Information Management.
Copyright © 2006 by Maribeth H. Price 5-1 Chapter 5 Working with Tables.
Microsoft Office XP Illustrated Introductory, Enhanced Tables and Queries Using.
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.
Return to Outline Copyright © 2009 by Maribeth H. Price 4-1 Chapter 4 Attribute Data.
NSF DUE ; Wen M. Andrews J. Sargeant Reynolds Community College Richmond, Virginia.
Selecting features in ArcMap
Chapter 13.3: Databases Invitation to Computer Science, Java Version, Second Edition.
Copyright © 2006 by Maribeth H. Price 13-1 Chapter 13 Working with Geodatabases.
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.
DAY 20: ACCESS CHAPTERS 5, 6, 7 Larry Reaves October 28,
NSF DUE ; Chérie Aukland. NSF DUE ; GeoTEd Partners.
N5 Databases Notes Information Systems Design & Development: Structures and links.
Chapter 6 Spatial Joins.
Relationship Class What is a Relationship Class (3)
Geog. 314 Working with tables.
©2005 The McGraw-Hill Companies, All rights reserved McGraw-Hill/Irwin
Chapter 5 Queries.
IST 220 – Intro to Databases
Introduction to Database Systems
Fundamentals of Information Systems, Sixth Edition
Chapter 14 Geodatabases.
Physical Structure of GDB
Larry Reaves October 9, 2013 Day 16: Access Chapter 2 Larry Reaves October 9, 2013.
Chapter 12 Information Systems.
Information Systems Database Management
Chapter 10 Geocoding.
Database Management  .
Building and Using Queries
Databases.
RELATIONAL DATABASE MODEL
Databases and Information Management
Spatial Data Processing
Preliminaries: -- vector, raster, shapefiles, feature classes.
Microsoft Office Access 2003
ERD’s REVIEW DBS201.
Week 11: Database Management System
Database.
Tutorial 3 – Querying a Database
Microsoft Office Access 2003
Mastering ArcGIS Chapter 7 Queries.
A Guide to SQL, Eighth Edition
Databases and Information Management
Displaying and Editing Data
Chapter 9 Query-by-Example Pearson Education © 2009.
Databases and Information Management
ESRM 250/CFR 520 Autumn 2009 Phil Hurvitz
Presentation transcript:

Chapter 4 Attribute Data

References Price, M. (2013). Mastering ArcGIS (6th ed.). McGraw-Hill Price, M. (2013). Mastering ArcGIS (6th ed.). McGraw-Hill. Mastering ArcGIS, 6/e Instructor Edition Chapter 4: PowerPoint Notes and Figures

Outline What is a table? Queries on tables. Joining and relating tables. Summary statistics. Database storage concepts.

What is a table? Data stored as an array of rows and columns, with each row representing an object (feature) and each column representing an attribute (property) of that object. Field Title Records

Types of tables Attribute table Standalone 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 Dedicated systems for managing tables of data. Provide data management for agencies, universities, companies, etc. Designed for multi-user environments with enhanced security needs. Focus on data tables with tools for queries, reporting, graphing, etc.

Queries on tables. A query extracts certain records from a table based on a specified condition How many students have GPA > 3? How many states have population > 1 million? How many counties had greater population in 2000 than in 2010? How many customers have last names beginning with “Mac” or “Mc”?

SQL (Structured Query Language ) Many databases use a special query language called Structured Query Language. Can write queries that work in multiple DBMS environments. Queries can be saved and reused. Nearly always case-sensitive.

SQL Query Examples Some Valid Queries SELECT *FROM cities WHERE "POP1990" >= 500000 SELECT *FROM counties WHERE “BEEFCOW_92” < “BEEFCOW_87” SELECT *FROM parcels WHERE “LU-CODE” = 42 AND “VALUE” > 50000 SELECT *FROM rentals WHERE “RENT” > 700 AND “RENT” < 1500 In most databases, SQL expressions are case-sensitive “Smith” ≠ “SMITH”

Query results The result of a query is a set of selected records that meet the criteria. Subsequent operations on the table will use only the selected records and ignore the others. A user might… Export the selected records to a new table, Calculate statistics on the selected records, Calculate new values for the selected records, and Produce a report based on the selected records.

Joining and relating tables Destination table Source table Common field Joined table

Join facts Joins are temporary relationships between tables used by a relational DBMS. Tables must share a common field (key). Treats the two tables as a single table. Original stored data is not affected. Can be removed when no longer needed.

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

Types of Cardinality One-to-one Many-to-one States to Governors Husbands to wives Cities to states Schools to districts

? 3. One-to-many Violates the Rule of Joining States to cities Districts to schools Violates the Rule of Joining Record 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

Summary statistics Grouping records in a table according to one categorical field and calculates statistics.

Database storage concepts Database fields typically are defined by ASCII vs binary type storage Bytes of storage allocated Integer vs floating point Definition limits the values that can be stored Important to match type to storage requirements Try to minimize storage space while making sure all potential values will fit in the field Text (ASCII) field with 10 bytes “Mississipp” Binary 2-byte signed integer: -32,767 to +32,767 Single-precision floating point x.xxxxxxxeyy

ArcGIS field data types