An organization wants to create a database, EMP_DEPENDENT with the following relations and their attributes about its employees and their dependents.
EMPLOYEE(AadharNumber, Name, Address, Department,EmployeeID)
DEPENDENT(EmployeeID, DependentName,Relationship)
What is the degree of 'EMPLOYEE' and 'DEPENDENT' relations respectively?
An organization wants to create a database, EMP_DEPENDENT with the following relations and their attributes about its employees and their dependents.
EMPLOYEE(AadharNumber, Name, Address, Department,EmployeeID)
DEPENDENT(EmployeeID, DependentName,Relationship)
What is the degree of 'EMPLOYEE' and 'DEPENDENT' relations respectively?
Solution
Degree of a relation is the number of attributes (columns) in it.
EMPLOYEE has 5 attributes: AadharNumber, Name, Address, Department, EmployeeID, so its degree is .
DEPENDENT has 3 attributes: EmployeeID, DependentName, Relationship, so its degree is .
Option 2: reverses the two degrees.
Cardinality is the number of rows (tuples), not the number of attributes. Degree counts columns only, so the number of records stored does not matter.
Related questions:
2025: 21 May Shift 1