Previous Topic: Attribute Source CategoryNext Topic: Attribute Length


Attribute Domain

The term domain refers to the collection of possible values for an attribute or set of attributes. Put another way, the domain of the attribute must include the set of all values that can actually be assigned to that attribute.

An attribute domain is:

The values of attributes from different primitive domains cannot usually be compared or used together in calculations. For example, it makes no sense to compare CUSTOMER Number with CUSTOMER Address. Makes no sense to multiply ORDER Quantity by Current Date. However, be required to add a number of days to a date.

The following table shows the primitive domains for the attributes of the entity type CUSTOMER.

Attribute

Primitive Domain

Number

Text

Name

Text

Address

Text

Phone Number

Text *

Status

Text

Credit Rating

Text

Date Known

Date

Outstanding Orders Value

Number

*Assume that Phone Number includes parentheses and hyphens for readability.