Title: Working with Tables
1Working with Tables
- Where the serious GIS work takes place.
2One Feature One Record
3Field or Column
Record or Row
One Feature One Record
4Field Requirements
- Use unique column names
- Define the data type to be stored
- Appropriate width for attribute value.
Data Types will be discussed in the next lecture.
5Joining and Relating Tables
A Common Field
6One to One Relationship
Join the tables.
7Many to One
Join the tables.
8One to Many Relationship
Relate the tables.
9Many to Many
Relate the tables.
10Joining Tables
11Joining to another table based on atributes.
This is the table you are joining
These are the common fields
12Join Results
Original Owners.dbf
Original Coffee Shop Attribute Table (points)
13Joined Tables
- The originals remain separated
- They can be unjoined
- You can use joined data to symbolize and
classify. - You can create statistics, charts and reports.
14What happens if you join when you should relate
for a One to Many?
Shape Area Name ID
point 32456 Smith 71
point 23412 Jones 64
point 16534 Green 22
ID Tax_Val Income
71 1400 42000
71 723 5701
64 3218 89055
64 127 879
22 465 2271
71 4213 120000
?
?
Join will combine for the first record and then
ignore the rest. Relate will connect all the
records.
?
15What happens if you join in a Many to One
Shape Area Name Route
point 17864 Allan 14
Point 22341 Rios 14
Point 12221 Lee 9
point 32456 Smith 9
point 23412 Jones 27
point 16534 Green 27
Route Day Comp
14 M UPS
9 T FEDX
27 F AIRB
The records are duplicated in the Joined file
16Multiple Joins and Relates(Daisy Chains)
Route
Route
17Related Tables
18Summarize Data
19Create a Graph from Summarized, Selected Data
20(No Transcript)
21Chart of joined, summarized, selected data.