Skip to main contentSkip to solution

What will be the cardinality and degree respectively of the following table?

Table: UNIFORM

UCodeUNameUColor
1ShirtWhite
2PantGrey
3SkirtGrey
4TieBlue
5SocksBlue
6BeltBlu

Solution

✅ Correct Option: 2

Cardinality is the number of rows (tuples) and degree is the number of columns (attributes). The table has 6 rows (UCode 1 to 6) and 3 columns (UCode, UName, UColor), so cardinality is 6 and degree is 3.


Options 1 and 3: these reverse the two terms, giving 3 as cardinality.

Option 4: 7 counts the header row as a record, but the header only names the attributes and is not a tuple.

Memory trick: cardinality is "cards" (records) counted downwards, and degree is the number of columns (attributes).

Keyboard Shortcuts

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