Question:

Calculate the degree and cardinality of the given relation below: 

IDNameEmailAddressPhone No.
001Ajayajay@abc.comA1-Shakti Nagar, Bangalore55218936
002Amitamit@abc.comC32-Indira Nagar, Lucknow45321789
003Ashuashu@abc.com117/82 Patel Nagar, Delhi98567894
004Ashokashok@abc.com249-250, Motinagar, Gujrat97698541

Show Hint

Easy mnemonic:
Degree = Number of Columns (Attributes).
Cardinality = Number of Rows (Tuples).
Do not count the header row in cardinality!
Updated On: Sep 8, 2026
  • Degree = 4, Cardinality = 5
  • Degree = 5, Cardinality = 4
  • Degree = 5, Cardinality = 1
  • Degree = 4, Cardinality = 1
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is B

Solution and Explanation

Concept:
In relational database terminology:
- The Degree of a table (relation) is the total number of attributes (columns) present in that relation.
- The Cardinality of a relation is the total number of tuples (rows or records) stored in the relation, excluding the attribute header row.

Step 1: Calculating the Degree:

Count the vertical columns defined in the table:
1. ID
2. Name
3. Email
4. Address
5. Phone No.
Total number of attributes = 5.
Therefore, \(\text{Degree} = 5\).

Step 2: Calculating the Cardinality:

Count the distinct data rows (tuples) present:
1. Record of Ajay (ID 001)
2. Record of Amit (ID 002)
3. Record of Ashu (ID 003)
4. Record of Ashok (ID 004)
Total number of tuples = 4.
Therefore, \(\text{Cardinality} = 4\).
Final Answer:
The relation has a Degree of 5 and a Cardinality of 4. This matches option (B).
Was this answer helpful?
0
0