Xpode.com        Click here to Print this article.

Basic Concepts - Attribute and Domain

Attributes are features or characteristics which are used to differentiate an entity from other entities. Values can be assigned to these attributes. These values can be either numeric or non-numeric. E.g. ‘Student’ is an entity. Its attributes can be roll number, name, date of birth, gender and class. The values for these attributes can be 1234, Ritika, 19/11/1982, female and MCA.

Domain is the set of values that can be assigned to an attribute. We can assign values to the attribute only from this domain and we can not assign any value which is outside this domain. Thus domain fixes a boundary. E.g. Gender is an attribute. Its domain contains two values: male and female. So we can assign only male or female to gender attribute and no other value.



http://
http://

Contributed by:
Ritika Sood
Lecturer in computer science....Love to do programming...Other interests are sports, freaking out with frnds, travel at beautiful places, watch movies, listen songs....

Resourse address on xpode.com
http://www.xpode.com/Print.aspx?Articleid=81

Click here to go on website