Home | Previous Page | Next Page   Basics of Database Design and Implementation > Building a Relational Data Model > Translating E-R Data Objects into Relational Constructs >

Defining Tables, Rows, and Columns

You are already familiar with the idea of a table that is composed of rows and columns. But you must respect the following rules when you define the tables of a formal data model:

If your previous experience is only with data organized as arrays or sequential files, these rules might seem unnatural. However, relational database theory shows that you can represent all types of data with only tables, rows, and columns that follow these rules. With a little practice, these rules become automatic.

Placing Constraints on Columns

When you define your table and columns with the CREATE TABLE statement, you constrain each column. These constraints specify whether you want the column to contain characters or numbers, the form that you want dates to use, and other constraints. A domain describes the constraints when it identifies the set of valid values that attributes can assume.

Domain Characteristics

You define the domain characteristics of columns when you create a table. A column can contain the following domain characteristics:

For information about how to define domains, see Choosing Data Types. For information about how to create your tables and database, see Implementing a Relational Data Model.

Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]