Creating tables

Tables represent one of the three key dataset types in GIS, along with feature classes and image datasets (referred to more generally as raster datasets in ArcGIS). GIS users employ tables to store descriptive attributes. Tables are also the mechanism that is used to store feature classes and raster datasets in each geodatabase.

In ArcGIS, a table has a series of rows and columns used to store descriptive information. Each row has a series of fields with values. The same fields (or columns) appear in each row. Each column has an associated type, such as an integer number, a real number with decimal places, a text field, a date field, a shape field, or similar binary field, to hold more sophisticated structures such as feature geometry or imagery, an XML field, and so forth.

Each row in a table can be considered as an object, and the fields hold the descriptive properties of each object. In the case of feature classes, the object in each row is a feature and the shape column holds the feature's geometry (such as a point, line, or polygon). In the case of a nonspatial table (in other words, a typical attribute table), these are sometimes referred to as "aspatial" or nonspatial objects.

Parcel attributes accessed using the Parcel ID.

ArcGIS users work with tables in many formats and sources including these:

For more information about what you can do with the different types of tables in ArcGIS, see About tabular data sources.

For more about creating tables in geodatabases, see Designing tables in the geodatabase.

Many of the tables are organized within and managed as part of the geodatabase. This is the primary mechanism used to manage descriptive information about features and images.

How to create tables in the Catalog window

Steps:
  1. In the Catalog window, right-click the database in which you want to create a new table and point to New > Table.

    A wizard for defining a new table appears.

    TipTip:

    When creating a new table, you can use another table as a template. Click Import, navigate to the table that contains the field definitions you want to copy, then click OK. Now you can edit the field names and their data types.

  2. Type a name for the table.
  3. Optionally, type an alias.
  4. Click Next.
  5. Optionally, if you are creating a new table within a file geodatabase, you can choose an optional configuration keyword for setting up your table to manage text fields in various languages.

    Using the DEFAULTS keyword, in most cases, is recommended.

    If you want to store Asian characters, such as Japanese or Chinese, in text fields within your table within a file geodatabase, you might want to choose the TEXT_UTF16 keyword for file geodatabases.

    For more information, refer to Configuration keywords for file geodatabases and Configuration keywords for ArcSDE geodatabases.

  6. To add a field to the table, click the next blank row in the Field Name column and type a name.
  7. Click in the Data Type column next to the new field's name and click its data type.
  8. To create an alias for this field, click the field next to Alias and type the alias for this field.
  9. To prevent nulls from being stored in this field, click the field next to Allow nulls, click the drop-down arrow, then click No.
  10. To associate a default value with this field, click the field next to Default value and type the value.
  11. To associate a domain with this field, click the field next to Domain, click the drop-down arrow to see a list of the domains that apply to this field type, then click the domain.
  12. To set other properties specific to the type of field, either click the property in the drop-down list or type the property.
  13. Repeat steps 6 through 12 until all the table's fields have been defined.

    NoteNote:

    If you have entered a field that you don't want included in the new table, select it by clicking its tab in the grid and press the DELETE key.

  14. Click Finish.

NoteNote:

All simple tables in the geodatabase require an ObjectID type field. The ObjectID field uniquely identifies each object stored in the table in the database.

How to create tables using geoprocessing

Steps:
  1. In ArcToolbox, expand Data Management Tools, expand the Tables toolset, then click Create Table.
  2. Specify the name of the geodatabase in which the new table is to be created or specify the name of the output workspace (file folder) in which a new dBASE table is to be created.
  3. Provide the new table name and an optional table whose fields can be used as a template for the fields in the new table.
  4. Set a configuration keyword if necessary for managing text fields in various languages.

    If you are creating a new table within a file geodatabase, you can choose an optional configuration keyword for setting up your table. Using DEFAULTS in most cases is recommended.

Related Topics


9/17/2012