Professional Documents
Culture Documents
2011 Charlie Schweik Note: This work is licensed under the Creative Commons AttributionAttributionNonCommercialNonCommercial-ShareAlike 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/. http://creativecommons.org/licenses/by-nc-
Relational Databases
Store data in multiple two-dimensional tables Like flat-files, but easier to extract information from multiple files at one time Tables are related--they share common elements or keys Basic operations (in ArcGIS):
Select (query) Joining tables Relating tables
Popular PC software: Access, Foxpro, Paradox, Oracle, ArcGIS geodatabase uses Access
Y N Y Y N
Y Y Y Y N
An example of a 1- Many relationship 1(1 GIS feature, Many associated Excel rows) Use ArcMap RELATE
Town Amherst Hadley
Town-ID Town-ID
Month
1 2
2 2 1 1 2
Jan 05 $24,000 Feb 05 $14,000 Jan 05 $12,000 Feb 05 $16,000 Mar 05 $30,000
An example of a Many 1
(1 GIS feature - 1 excel record relationship) Use ArcMap JOIN
Building ID Code
Landuse
1 2 3 4 5
A A F F A
Landuse code
F A
Legend data
Tenant ID
A B C
Tenant Excel
Note: Many-to-Many relationships are complicated we dont have time to cover it. It requires linking tables. I recommend you try to keep to 1-M or M-1 relationships but if you need this, ArcMap can handle this situation. See help in ArcMap, Working with 8 Tables.
Relates in ArcGIS
Relates let you associate data with the layer The associated data isnt appended to the layers attribute data like it is for a join. Instead you can access the related data when you work with this layers attributes and vise versa, if a relate is established.
10