What is the degree and cardinality respectively of the table below ?
Roll No. SName SDoB GName GPhone 101 Akarsh 21.04.95 Himanshu 9918044336 102 Amit 15.10.96 Pradeep 7905200265 103 Anubhav 13.06.95 Sumit 9415019796 104 Amit 12.05.94 Nidhi 8563886953
What is the degree and cardinality respectively of the table below ?
| Roll No. | SName | SDoB | GName | GPhone |
|---|---|---|---|---|
| 101 | Akarsh | 21.04.95 | Himanshu | 9918044336 |
| 102 | Amit | 15.10.96 | Pradeep | 7905200265 |
| 103 | Anubhav | 13.06.95 | Sumit | 9415019796 |
| 104 | Amit | 12.05.94 | Nidhi | 8563886953 |
Solution
✅ Correct Option: 1
Degree is the number of columns (attributes) in a table, and cardinality is the number of rows (tuples).
The table has 5 columns (Roll No., SName, SDoB, GName, GPhone), so the degree is 5. It has 4 rows of data (Roll No. 101 to 104), so the cardinality is 4.
Option 2: reverses the two terms.
Options 3 and 4: 20 is the total number of cells (), which is neither degree nor cardinality.
The header row is not counted as a tuple.
Related questions:
2025: 16 May Shift 1
2025: 13 May Shift 2
2025: 14 May Shift 1