Show Navigation | Hide Navigation
You are here:
Data support in ArcGIS > Tables and attribute information > Creating tables and managing attribute information

Joining tables

Release 9.2
Last modified January 10, 2008
E-mail This Topic Printable Version Give Us Feedback

Print all topics in : "Creating tables and managing attribute information"


Related Topics

About joining tables

Joining data is typically used to append the fields of one table to those of another through an attribute or field common to both tables. You can choose to define the join based either on attributes, a predefined geodatabase relationship class, or by location (also referred to as a spatial join). You will only see join by relationship class listed if you are joining geodatabase data for which a relationship class has already been defined in the geodatabase.

Several tables or layers can be joined to a single table or layer and relationship class joins can be mixed with attribute joins. When a join table is removed, all data from tables that were joined after it are also removed, but data from previously joined tables remain. Symbology or labeling that is based on an appended column is returned to a default state when the join is removed.

In most cases, appended columns are named "TableName.FieldName". This naming convention helps prevent duplicate field names when the target table and a join table have common field names. Field aliases set in ArcMap prior to a join are ignored but can be reset after the join. This is useful if the field names prove to be too long for some of the field lists in ArcMap. Field aliases set in the geodatabase prior to the join are used to define the field aliases for the joined columns.

Learn more about joining and relating tables


Summarizing your data before joining it

Depending on how your data is organized, you may have to start by summarizing the data in your table before you join it to a layer. When you summarize a table, ArcMap creates a new table containing summary statistics derived from your table. You can create various summary statistics including count, average, sum, minimum, and maximum.

For example, suppose you want to create weather maps by state instead of county, but the weather information you have is organized by county. You could summarize the county data by state—for instance, finding the average rainfall for all counties within a state—then join the newly created output table to a state layer to create a weather map of rainfall by state.

Example of tabular data joined to geographic data


Editing and joining tables

When you start an edit session and have joined data, columns from the target table can be edited, but you can't directly edit the data in the appended columns. If you add a field, it is added to the target table or layer and has no effect on the join tables. Appended columns can be referenced when calculating values in the columns of the target table, however.

To edit the joined data, you must first add the joined tables or layers to ArcMap. You can then perform edits on this data separately. These changes will be reflected in the joined columns.


Performance tips for joining data


Data from appended fields can be used to symbolize and label features, perform queries and many other operations. Accessing the joined data will be slower than accessing data from the target table because of the additional work needed to maintain the join.

The following tips can be used when working with joined data to improve performance:




Reasons joining tables may fail

After performing a join, the values in the fields from the joined table might appear empty or Null. Null values can be the result of several factors:



How to join tables

Joining attributes in one table to another

  1. Right-click the layer or table you want to join, point to Joins and Relates, and click Join.
  2. Click the first drop-down arrow and click Join attributes from a table.
  3. Click the second drop-down arrow and click the field name in the layer on which the join will be based.
  4. Click the third drop-down arrow to choose the table to join to the layer.
  5. If the table is not currently part of the map, click the Browse button to search for it on disk.
  6. Click the fourth drop-down arrow and click the field in the table on which to base the join.
  7. Click OK.
  8. The attributes of the table are appended to the layer's attribute table.

Tips

  • If you want to permanently save joined data with your geographic features, export the data to a new feature class, right-click the layer in the table of contents, point to Data, and click Export data.
  • When editing joined data, you cannot edit the joined columns directly. However, you can directly edit the columns of the origin table. To edit the joined data, you must first add the joined tables or layers to ArcMap. You can then perform edits on this data separately. These changes will be reflected in the joined columns.


Managing joined tables

  1. Right-click a layer or table in the table of contents and click Properties.
  2. Click the Joins & Relates tab.
  3. All the joins for the layer or table are listed on the left side of the dialog box. You can add new joins or remove existing ones.


Removing a joined table

  1. Right-click the layer containing a join you want to remove and point to Joins and Relates.
  2. Point to Remove Join(s) and click the join you want to remove.

Please visit the Feedback page to comment or give suggestions on ArcGIS Desktop Help.
Copyright © Environmental Systems Research Institute, Inc.