Which one of the options given below refers to the degree (or arity) of a relation in relational database systems?
View worked solution
Answer: A
In relational database systems, we define the fundamental properties of a relation as follows:
- Degree (or Arity): The number of attributes (columns) in the relation schema. For example, a relation has a degree of .
- Cardinality: The number of tuples (rows) currently stored in the relation.
Let's evaluate the given options:
- Option A: Number of attributes of its relation schema. This is the correct definition of the degree (or arity) of a relation.
- Option B: Number of tuples stored in the relation. This defines the cardinality of the relation, not its degree.
- Option C: Number of entries in the relation. This is an informal term that typically refers to the number of tuples or individual data values, which is incorrect.
- Option D: Number of distinct domains of its relation schema. Multiple attributes in a schema can share the same domain (e.g., both
Home_PhoneandWork_Phonecan share the domain of 10-digit phone numbers). Thus, the number of distinct domains does not represent the degree.
Therefore, Option A is the correct answer.
Free practice · Your answers on this page are not saved.
