PID Name Phone Address Age 001 Sumit 9415177980 Delhi 32 002 Rakesh 9415288790 Agra 34 003 Astha 9415327785 Lucknow 28 004 Jyoti 9415477285 Merrut 30
In the above relation what is the degree and cardinality respectively?
| PID | Name | Phone | Address | Age |
|---|---|---|---|---|
| 001 | Sumit | 9415177980 | Delhi | 32 |
| 002 | Rakesh | 9415288790 | Agra | 34 |
| 003 | Astha | 9415327785 | Lucknow | 28 |
| 004 | Jyoti | 9415477285 | Merrut | 30 |
In the above relation what is the degree and cardinality respectively?
Solution
✅ Correct Option: 2
Degree is the number of attributes (columns) in a relation, and cardinality is the number of tuples (rows).
The table has 5 columns (PID, Name, Phone, Address, Age), so the degree is 5. It has 4 rows of data (the header row is not counted), so the cardinality is 4.
Option 4: 20 is the total number of cells (), which is not what cardinality measures.
Options 1 and 3: these swap or miscount the columns; the header row is not a tuple.
Memory trick: Degree = Direction of columns (down), Cardinality = Count of rows.
Related questions:
2026: 23 May Shift 2
2025: 16 May Shift 1
2025: 13 May Shift 2
2026: 18 May Shift 2
2025: 20 May Shift 1