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:
Some analysts consider the domains Date and Time to be complex domains that are based on the primitive domain Number. Dates and times are so universally important and uniquely configured that they are regarded here as primitive domains.
Note: For more information, see Additional Data Modeling Topics.
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.
Copyright © 2014 CA.
All rights reserved.
|
|