Click here to hide categories Click here to show left categories

User: Home          welcome : Guest          Log In / Register here     

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.

Share this article   |    Print    |    Article read by 2813 times
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....
Related Articles: No related article
Related Interview Questions: No related interview question