Creating a simple relationship class
This topic applies to ArcGIS for Desktop Standard and ArcGIS for Desktop Advanced only.
Although relationship classes can be both created and edited in ArcGIS for Desktop Advanced and ArcGIS for Desktop Standard, they are read-only in ArcGIS for Desktop Basic. The feature classes participating in a relationship class will also be read-only in ArcGIS for Desktop Basic.
You can create new relationship classes between any feature class or table within your geodatabase using tools in ArcCatalog or the Catalog window. These tools can be used to create simple, composite, and attributed relationship classes.
Learn more about relationship classes
Relationship classes appear in the Catalog 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.
- In the Catalog tree, right-click the geodatabase or feature dataset in which you want to create the new relationship class and point to New > Relationship Class.
- Type the name for the new relationship class.
- Click the Origin table or feature class.
- Click the Destination table or feature class.
- Click Next.
- Click Simple (peer-to-peer) relationship.
- Click Next.
- Type the forward and backward path labels.
- Click the message notification direction.
- Click Next.
- 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.
- Click Next.
- Click No. In this example, the relationship class does not require attributes.
- Click Next.
- 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.
- 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 15 are displayed. Click the foreign key that refers to the primary key selected in step 15.
- Click Next.
- 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.
- Click Finish to create the new relationship class when satisfied with your options.