ArcGIS Server Banner

Creating a simple relationship class (ArcInfo and ArcEditor only)

Creating a simple relationship class (ArcInfo and ArcEditor only)

Release 9.3 E-mail This TopicPrintable VersionGive Us feedback

About creating relationship classes

Note: This topic was updated for 9.3.1.

NOTE: Although relationship classes can be both created and edited in ArcInfo and ArcEditor, they are read-only in ArcView. The feature classes participating in a relationship class will also be read-only in ArcView.

You can create new relationship classes between any feature class or table within your geodatabase using tools in ArcCatalog. These tools can be used to create simple, composite, and attributed relationship classes.

Learn more about relationship classes.

Relationship classes appear in the ArcCatalog tree; you can inspect their properties as well as the relationships for any particular feature class.

The example in the following task shows how to create a relationship class between a feature class that stores parcel objects and a table that stores owner objects. It is a simple, nonattributed relationship. In the database, a parcel can be owned by a single owner and an owner can own a single parcel, so it is a one-to-one relationship.

How to create a simple relationship class (ArcInfo and ArcEditor only)

  1. In the ArcCatalog tree, right-click the geodatabase or feature dataset in which you want to create the new relationship class.
  2. Point to New.
  3. Click Relationship Class.
  4. Type the name for the new relationship class.
  5. Click the Origin table or feature class.
  6. Click the Destination table or feature class.
  7. Click Next.
  8. Click Simple (peer-to-peer) relationship.
  9. Click Next.
  10. Type the forward and backward path labels.
  11. Click the message notification direction.
  12. Click Next.
  13. Click the first cardinality option. In this example, an owner can own a single parcel and a parcel can be owned by a single owner, so this is a one-to-one (1:1) relationship.
  14. Click Next.
  15. Click No. In this example, the relationship class does not require attributes.
  16. Click Next.
  17. Click the drop-down arrow to see a list of fields from the Origin table or feature class. Click the primary key for this feature class or table.
  18. Click the drop-down arrow to see a list of fields from the Destination table or feature class. Only those fields that are the same type as selected in step 17 are displayed. Click the foreign key that refers to the primary key selected in step 17.
  19. Click Next.
  20. Review the options you specified for your new relationship class. If you want to change something, you can go back through the wizard by clicking Back.
  21. Click Finish to create the new relationship class when satisfied with your options.

Tips

  • In this example, you are not adding attributes to your relationship class, although any relationship class can have attributes.
  • Learn more about creating an attributed relationship class

  • Many-to-many relationship classes require the relationship class to have its own table in the database. You can optionally add attributes to this table, or you can allow ArcGIS to manage the schema of the table for you.
  • By default, the notification direction for a simple relationship is None.

See Also

  • Creating a composite relationship class
  • Creating an attributed relationship class
  • Creating relationship rules
  • Relationship class properties