Book Image

ArcGIS By Example

By : Hussein Nasser
Book Image

ArcGIS By Example

By: Hussein Nasser

Overview of this book

Table of Contents (17 chapters)
ArcGIS By Example
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Introducing relationships


Relationships are the core of any relational database management system. The relational database model is based on multiple tables connected via relation. Relationships come in many forms, one to one, one to many, and many to many. In our case, a certain venue has many reviews which make this relationship a one-to-many relationship.

The reviews and ratings table

There can be many reviews and ratings for a given restaurant, and putting this information in the feature class will create duplicate information. This is why a related table can be useful here. Both the reviews and ratings are stored in a related table called VENUES_REVIEW. Follow these steps to inspect this related table:

  1. If necessary, copy the entire bestaurants folder from the supporting files for this chapter, B04847_06_Files\bestaurants\ to the C:\ArcGISByExample\. If you already have done this in Chapter 5, App 2 – Extending ArcObjects, you can skip this step.

  2. From the Start menu, run ArcCatalog.

  3. Connect...