Table Standards

This page goes over various standards that should be followed when developing database tables. Consider this to a be list of best practices. Many of these points might be duplicated in other articles.

Best Practices

Data Modeling

Example:

  1. Table client_xyz_buiness_code has a01_key and a01_code
  2. Table client_xyz_customer_x_buiness_code has a02_key and a02_a01_key (FK to client_xyz_business_code.a01_key) and a02_cst_key. Do NOT have a02_a01_code! On forms, depict a02_a01_key as a DropDownList (if there are few records in the parent table) or a Lookup. Add a Related Object to make these work. See Related Object on the Wiki for more information.

Naming Convention

See Table/Column Naming Conventions on the Wiki for more information.

Columns

Data Integrity

Indexes