Skip to main contentSkip to solution

Consider the following table and answer the question that follows:-

Employee

ENOENAMESALARY
101RAM9000
102MOHANNULL
103SOHAN8000
104ROHAN8500
105MANAN9500

How many tuples are there in the table?

Solution

✅ Correct Option: 2

A tuple is a row of a relation. The table has 5 rows (ENO 101 to 105), so it has 5 tuples. The row with ENO 102 has NULL in SALARY, but it is still a tuple and is counted.


Option 1: 4 comes from leaving out the row with the NULL salary, but a NULL value does not remove a row from the table.

Option 4: 7 mixes up the count with something else. The table has 3 attributes (columns) and 5 tuples (rows), and a header row is not a tuple.

Keyboard Shortcuts

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