Consider the following table and answer the question that follows:-
Employee
ENO ENAME SALARY 101 RAM 9000 102 MOHAN NULL 103 SOHAN 8000 104 ROHAN 8500 105 MANAN 9500
How many tuples are there in the table?
Consider the following table and answer the question that follows:-
Employee
| ENO | ENAME | SALARY |
|---|---|---|
| 101 | RAM | 9000 |
| 102 | MOHAN | NULL |
| 103 | SOHAN | 8000 |
| 104 | ROHAN | 8500 |
| 105 | MANAN | 9500 |
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.
Related questions:
2025: 30 May Shift 2
2026: 13 May Shift 2
2026: 11 May Shift 2
2025: 30 May Shift 2
2026: 29 May Shift 1