Skip to main contentSkip to solution

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

✅ Correct Option: 1

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 55.

DEPENDENT has 3 attributes: EmployeeID, DependentName, Relationship, so its degree is 33.


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.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question