What will be the cardinality and degree respectively of the following table?
Table: UNIFORM
UCode UName UColor 1 Shirt White 2 Pant Grey 3 Skirt Grey 4 Tie Blue 5 Socks Blue 6 Belt Blu
What will be the cardinality and degree respectively of the following table?
Table: UNIFORM
| UCode | UName | UColor |
|---|---|---|
| 1 | Shirt | White |
| 2 | Pant | Grey |
| 3 | Skirt | Grey |
| 4 | Tie | Blue |
| 5 | Socks | Blue |
| 6 | Belt | Blu |
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).
Related questions:
2026: 31 May Shift 1
2026: 18 May Shift 2
2025: 15 May Shift 2