Working with Tables
description
Transcript of Working with Tables
![Page 1: Working with Tables](https://reader036.fdocuments.us/reader036/viewer/2022062305/56815049550346895dbe4589/html5/thumbnails/1.jpg)
Working with Tables
Where the serious GIS work takes place.
![Page 2: Working with Tables](https://reader036.fdocuments.us/reader036/viewer/2022062305/56815049550346895dbe4589/html5/thumbnails/2.jpg)
One Feature – One Record
![Page 3: Working with Tables](https://reader036.fdocuments.us/reader036/viewer/2022062305/56815049550346895dbe4589/html5/thumbnails/3.jpg)
Field
or
Column
Record
or
Row
One Feature – One Record
![Page 4: Working with Tables](https://reader036.fdocuments.us/reader036/viewer/2022062305/56815049550346895dbe4589/html5/thumbnails/4.jpg)
Field 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.
![Page 5: Working with Tables](https://reader036.fdocuments.us/reader036/viewer/2022062305/56815049550346895dbe4589/html5/thumbnails/5.jpg)
Joining and Relating Tables
A Common Field
![Page 6: Working with Tables](https://reader036.fdocuments.us/reader036/viewer/2022062305/56815049550346895dbe4589/html5/thumbnails/6.jpg)
One to One Relationship
Join the tables.
![Page 7: Working with Tables](https://reader036.fdocuments.us/reader036/viewer/2022062305/56815049550346895dbe4589/html5/thumbnails/7.jpg)
Many to One
Join the tables.
![Page 8: Working with Tables](https://reader036.fdocuments.us/reader036/viewer/2022062305/56815049550346895dbe4589/html5/thumbnails/8.jpg)
One to Many Relationship
Relate the tables.
![Page 9: Working with Tables](https://reader036.fdocuments.us/reader036/viewer/2022062305/56815049550346895dbe4589/html5/thumbnails/9.jpg)
Many to Many
Relate the tables.
![Page 10: Working with Tables](https://reader036.fdocuments.us/reader036/viewer/2022062305/56815049550346895dbe4589/html5/thumbnails/10.jpg)
Joining Tables
![Page 11: Working with Tables](https://reader036.fdocuments.us/reader036/viewer/2022062305/56815049550346895dbe4589/html5/thumbnails/11.jpg)
Joining to another table based on atributes.
This is the table you are joining
These are the common fields
![Page 12: Working with Tables](https://reader036.fdocuments.us/reader036/viewer/2022062305/56815049550346895dbe4589/html5/thumbnails/12.jpg)
Join Results
Original Coffee Shop Attribute Table (points)
Original Owners.dbf
![Page 13: Working with Tables](https://reader036.fdocuments.us/reader036/viewer/2022062305/56815049550346895dbe4589/html5/thumbnails/13.jpg)
Joined 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.
![Page 14: Working with Tables](https://reader036.fdocuments.us/reader036/viewer/2022062305/56815049550346895dbe4589/html5/thumbnails/14.jpg)
What 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.
![Page 15: Working with Tables](https://reader036.fdocuments.us/reader036/viewer/2022062305/56815049550346895dbe4589/html5/thumbnails/15.jpg)
What 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
![Page 16: Working with Tables](https://reader036.fdocuments.us/reader036/viewer/2022062305/56815049550346895dbe4589/html5/thumbnails/16.jpg)
Multiple Joins and Relates(Daisy Chains)
Route
Route
![Page 17: Working with Tables](https://reader036.fdocuments.us/reader036/viewer/2022062305/56815049550346895dbe4589/html5/thumbnails/17.jpg)
Related Tables
![Page 18: Working with Tables](https://reader036.fdocuments.us/reader036/viewer/2022062305/56815049550346895dbe4589/html5/thumbnails/18.jpg)
Summarize Data
![Page 19: Working with Tables](https://reader036.fdocuments.us/reader036/viewer/2022062305/56815049550346895dbe4589/html5/thumbnails/19.jpg)
Create a Graph from Summarized, Selected Data
![Page 20: Working with Tables](https://reader036.fdocuments.us/reader036/viewer/2022062305/56815049550346895dbe4589/html5/thumbnails/20.jpg)
![Page 21: Working with Tables](https://reader036.fdocuments.us/reader036/viewer/2022062305/56815049550346895dbe4589/html5/thumbnails/21.jpg)
Chart of joined, summarized, selected data.