NSF DUE-1205110; 0903270 Wen M. Andrews J. Sargeant Reynolds Community College Richmond, Virginia.

Slides:



Advertisements
Similar presentations
Week 1: Introduction to GIS
Advertisements

CC SQL Utilities.
Concepts of Database Management Sixth Edition
XP Chapter 3 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Analyzing Data For Effective Decision Making.
Lab 7: Attribute SQL- Query the database
1 Pertemuan 09 Database Matakuliah: D0524 / Algoritma dan Pemrograman Komputer Tahun: 2005 Versi:
Attribute databases. GIS Definition Diagram Output Query Results.
Mary K. Olson PS Reporting Instance – Query Tool 101.
Microsoft Access 2010 Chapter 7 Using SQL.
Access Tutorial 3 Maintaining and Querying a Database
Microsoft Access 2007 Microsoft Access 2007 Introduction to Database Programs.
XP New Perspectives on Microsoft Access 2002 Tutorial 71 Microsoft Access 2002 Tutorial 7 – Integrating Access With the Web and With Other Programs.
DB Audit Expert v1.1 for Oracle Copyright © SoftTree Technologies, Inc. This presentation is for DB Audit Expert for Oracle version 1.1 which.
Access Tutorial 10 Automating Tasks with Macros
Chapter 9 Macros, Navigation Forms, PivotTables, and PivotCharts
Advance Computer Programming Java Database Connectivity (JDBC) – In order to connect a Java application to a database, you need to use a JDBC driver. –
Maintaining and Querying a Database Microsoft Access 2010.
Selecting and Displaying Features. Why do you need to select features? Why do you need to select features? Selection methods Selection methods Select.
XP New Perspectives on Microsoft Access 2002 Tutorial 41 Microsoft Access 2002 Tutorial 4 – Creating Forms and Reports.
CHAPTER 9 DATABASE MANAGEMENT © Prepared By: Razif Razali.
Introduction to Access By Mary Ann Chaney and Alicia Harkleroad.
Chapter 2 Querying a Database MICROSOFT ACCESS 2010.
ASP.NET Programming with C# and SQL Server First Edition
You can use a query to view a subset of your data or to answer questions about your data. For example, if you want to view a list of student names and.
IAGAP Access Database A Tutorial. Databases There are several databases available from the IAGAP Project. There are several databases available from the.
Lecture Note 9: Introduction to the MS Access
1 Overview of Databases. 2 Content Databases Example: Access Structure Query language (SQL)
Analyzing Data For Effective Decision Making Chapter 3.
XP New Perspectives on Integrating Microsoft Office XP Tutorial 2 1 Integrating Microsoft Office XP Tutorial 2 – Integrating Word, Excel, and Access.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Tutorial 30 – Bookstore Application: Client Tier Examining.
Martin Dodge Practical 2, 24th March 2004, pm Social Science Research Methodologies.
Management Information Systems MS Access MS Access is an application software that facilitates us to create Database Management Systems (DBMS)
XP 1 Microsoft Access 2003 Introduction To Microsoft Access 2003.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A.
Concepts of Database Management Seventh Edition
® Microsoft Office 2010 Access Tutorial 3 Maintaining and Querying a Database.
Database Systems Microsoft Access Practical #1 Creating Tables Nos 215.
XP New Perspectives on Microsoft Access 2002 Tutorial 1 1 Microsoft Access 2002 Tutorial 1 – Introduction To Microsoft Access 2002.
MS Access 2007 Management Information Systems 1. Overview 2  What is MS Access?  Access Terminology  Access Window  Database Window  Create New Database.
ArcGIS: ArcMap Tables. Agenda Opening tables The interface Working with columns Working with records Making selections Advanced table tools ▫Add fields.
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.
® Microsoft Office 2013 Access Creating a Database.
Tutorial 91 Databases A database is an organized collection of related information stored in a file on a disk A database allows companies to store information.
Microsoft Access 2013 ®® Tutorial 10 Automating Tasks with Macros.
Course ILT Forms and queries Unit objectives Create forms by using AutoForm and the Form Wizard, and add or modify form headers and footers Open and enter.
O FFICE M ANAGEMENT T OOL - II B BA -V I TH. Abdus Salam2 Week-7 Introduction to Query Introduction to Query Querying from Multiple Tables Querying from.
Computer Apps 1 Queries-part b. Queries Query – a database object that requests information from a database and creates a dataset (list of selected.
Database Fundamental & Design by A.Surasit Samaisut Copyrights : All Rights Reserved.
Using the AccuGlobe Software with the IndianaMap Using the AccuGlobe Software.
LBR & WS LAB 1: INTRODUCTION TO GIS.
Chapter Fourteen Access Databases and SQL Programming with Microsoft Visual Basic th Edition.
School of Geography FACULTY OF ENVIRONMENT Querying with ArcGIS.
Selecting features in ArcMap
Microsoft Access Lesson 5 Lexington Technology Center February 25, 2003 Bob Herring On the Web at
Access Queries and Forms. Adding a New Field  To insert a field after you have saved your table, open Access, and open the table  It is easier to add.
COMPREHENSIVE Access Tutorial 1 Creating a Database.
Create Views Using a Graphical Designer Database Administration Fundamentals LESSON 2.3b.
MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Sravanthi Lakkimsety Mar 14,2016.
Programming with Microsoft Visual Basic 2012 Chapter 14: Access Databases and SQL.
Chapter 4 Attribute Data.
Objectives Create an action query to create a table
Access Creating a Database
Access Creating a Database
Database Queries.
Geospatial Database Create Geodatabase Practical Session
CIS16 Application Programming with Visual Basic
Access: Access Basics Participation Project
Introduction to Access
Tutorial 7 – Integrating Access With the Web and With Other Programs
Presentation transcript:

NSF DUE ; Wen M. Andrews J. Sargeant Reynolds Community College Richmond, Virginia

NSF DUE ; GeoTEd Partners

NSF DUE ; What are Query Expressions (SQL )  Query expressions adhere to Structured Query Language (SQL) which is a special purpose programming language designed for managing data held in a relational database management systems (RDBMS)  It is the standard language for relational database management systems such as ArcGIS.  Some common relational database management systems that use SQL are: Oracle, Sybase, Microsoft SQL Server, Access, Ingres, etc.

NSF DUE ; Query Expressions (continue) Queries are used to perform tasks on database tables such as:  Selects  Inserts  Updates  Creates  Deletes Simply put, queries are used to communicate with databases to get specific information on a selected portion of a larger database Saving the generated query can produce a new database without changing the original database

NSF DUE ; General Format of a Query Typical query expressions use the general form as follows:  Select * From Where The table name that follows the keyword from specifies the table that will be queried to retrieve the desired results The where clause (optional) specifies which data values or rows will be returned or displayed

NSF DUE ; General Format of a Query (continue) Conditional selections used in the where clause: = Equal > Greater than < Less than >= Greater than or equal <= Less than or equal <> Not equal to LIKE

NSF DUE ; What Can SQL’s Do? Execute queries against a database Retrieve data from a database Insert records in a database Update records in a database Delete records from a database Create new databases Create new tables in a database Create stored procedures in a database Create views in a database Set permissions on tables, procedures, and views

NSF DUE ; Creating ArcGIS Queries ESRI provides an easy to use “Query Builder” tool to create the necessary queries without knowing how to write the SQL statement. Versions of Query Builder are used in several tools in ArcMap but the most common is from the Selection menu in the Standard toolbar. The two main options are:  Attribute queries  Spatial/Location queries

NSF DUE ; Anatomy of an Attribute Query Select appropriate action for data This screen allows the user to create the SQL expression easily without programming knowledge. The user selects the appropriate layer to query (layer), how to save it (method), the fields of interest, & the conditions that the user is wanting to pull out Available fields based on columns in the selected table Available values from selected table SQL Statement Box “Where” condition options

NSF DUE ; Attribute Query Example This is the completed screen once the users has chosen all the fields. In this example the query is going to “Create a new selection” based on the field “ProjectTyp” that meets the requirement of looking only at the “Final Subdivision”. This is a very simple query. It is important to remember, it is necessary to know what your data fields are before making your selection.

NSF DUE ; Attribute Query Example When the user opens the table associated with the query expression they will see something similar to what is below. Those rows that are selected will be outlined on the map showing their location relative to the other features of the dataset. In this example the total dataset contained 2465 records, only 40 met the criteria in the query expression.

NSF DUE ; Attribute Query Example When looking at the map the areas meeting the query conditions will be highlighted. This is only a temporary file, it is good to show visually where the conditions are and to completed some simple analysis on the data.

NSF DUE ; Attribute Query Example If this information is necessary for later use it is a good idea to save this as a separate or new data layer which can be pulled into the current project or future projects. When exporting the data be sure to select the right output location and select the correct file type

NSF DUE ; Advanced Attribute Query Example This is an example of a more complex query using the “equal to” and the “and” condition. This means that the only data to be returned must meet both conditions: Final Subdivision and Approved. This returned only 23 rows of data out of 2465 instead of 40

NSF DUE ; Attribute vs. Spatial Queries Query By Attribute  Requires an SQL statement either generated in a command line or by using the Query Builder  Can be simple with only one condition in the “where” clause or complex with multiple conditions  Involves only one layer but can involve multiple fields  Can be points, lines, or polygons Query By Location  This query shows the spatial relationship to other features within the same layer or in another layer  Base or source layer usually is a polygon feature  More than one feature layer (point or line) can be chosen to pull data from multiple datasets

NSF DUE ; Anatomy of a Spatial Query Select the layer that is being used as the location or base layer, typically a polygon. Select appropriate action for data Choose which layers you want to have included in the search. Spatial queries allow for data from more than one layer to be displayed.

NSF DUE ; Anatomy of a Spatial Query (cont) Select appropriate action for selecting data Can apply a buffer to the search criteria

NSF DUE ; Spatial Query Example In this example the user wants to find all the Community Centers, Public Schools, and Points of Interest located in a specific Elementary School Zone which is highlighted by the blue outline. The selected zone was chosen with the selection tool, clicking on the polygon of interest. The blue circles are the facilities that met the criteria in the query from the target layers. 18

NSF DUE ; Spatial Query Example (cont) By opening the tables and choosing the selected points the user is able to see the information from each table on the selected features. Again, this is a temporary file and does not affect the original database. As with “Attribute Queries” if this is needed for later use the data must be saved from each layer into a new dataset. 19

NSF DUE ; Anatomy of an Individual Query  There is a third type of query that is used quite often for a quick analysis of a layer. This is used by completing the following steps:  Select layer  Select “Properties”  Select “Definition Query” tab  Select “Query Builder” tool  Create the query  Verify  Hit “OK” 20

NSF DUE ; Individual Query Example (cont)  This is what the screen would look like before the query is run and then what it would look like after the query is run.  Remember this query was run on only one layer, the elementary school zones.  This could then be used for quick analysis or as a starting point for the spatial query to look at the data within the selected zones.  Remember this is still just a temporary file and does not change the original database 21

NSF DUE ; Questions? Wen M. Andrews Professor and Program Head Department of Architectural & Civil Engineering Technology J. Sargeant Reynolds Community College Richmond, Virginia