Skip to main contentSkip to solution

PIDNamePhoneAddressAge
001Sumit9415177980Delhi32
002Rakesh9415288790Agra34
003Astha9415327785Lucknow28
004Jyoti9415477285Merrut30

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 (5×45 \times 4), 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.

Keyboard Shortcuts

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