Machine-translated by Google. Questions are authored in English.
Top

Discussion

What is the degree of a relation in a relational database ?

  • A.Number of tuples
  • B.Number of attributes
  • C.Number of keys
  • D.Number of constraints

Answer: B

The degree of a relation is the number of attributes.

In the relational model, degree (also called arity) counts the columns of a relation. A table Student(roll, name, age) has degree 3 whatever the number of rows.

The number of tuples, or rows, is the relation's cardinality, the usual trap here. The number of keys and the number of constraints are not standard measures of a relation's size.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.