Skip to main contentSkip to solution

What will be the degree and cardinality respectively of the following relation "GUARD"?

GuIDGnamecontactaddress
111Jacob789582582NJ Washington
112John895858885London
115Victor985852828Austria
118Samuel798588846Germany
125Mary798986543Stockholm

Solution

✅ Correct Option: 2

Degree is the number of attributes (columns) in a relation, and cardinality is the number of tuples (rows).

GUARD has 4 columns (GuID, Gname, contact, address) and 5 rows of data, so the degree is 4 and the cardinality is 5.


Option 1: reverses the counts and uses 5 for degree, but the header row is not a tuple and the degree is only 4.

Option 3 and Option 4: 6 comes from wrongly counting the header row as a tuple, but the header is not a tuple, so it is not counted.

Memory trick: degree = "D" for downward headings (columns), cardinality = rows (tuples).

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question