Skip to main contentSkip to solution

Calculate the degree and cardinality of the given relation below:

IDNameEmailAddressPhone No.
001Ajay[email protected]A1-Shakti Nagar, Bangalore55218936
002Amit[email protected]C32- Indira Nagar, Lucknow45321789
003Ashu[email protected]117/82 Patel Nagar, Delhi98567894
004Ashok[email protected]249-250, Motinagar, Gujrat97698541

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 (ID, Name, Email, Address, Phone No.), so degree =5= 5.

It has 4 rows of data, not counting the header row, so cardinality =4= 4.

Degree=5,Cardinality=4\text{Degree} = \boxed{5}, \quad \text{Cardinality} = \boxed{4}


Option 1: swaps the two terms and counts the header row as a tuple.

Keyboard Shortcuts

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