Question:medium

A relation in MySQL database consists of 2 tuples and 3 attributes. If 2 attributes are deleted and 4 tuples are added, what will be the cardinality of the relation?

Show Hint

Cardinality means the number of rows. Deleting columns does not change it, and adding 4 rows to 2 rows gives 6.
Updated On: Oct 20, 2026
  • 4
  • 5
  • 6
  • 7
Show Solution

The Correct Option is C

Solution and Explanation

Step 1: Separate rows and columns:
Rows are the tuples and columns are the attributes.
Cardinality means the count of rows. Degree means the count of columns.
Deleting attributes touches columns. Adding tuples touches rows.

Step 2: Track the cardinality alone:
Start: 2 rows.
After deleting 2 attributes: still 2 rows, because removing columns does not remove rows.
After adding 4 tuples: 2 + 4 = 6 rows.

Step 3: Track the degree only for a check:
Start: 3 columns. After deleting 2: 1 column.
The table is now 6 rows by 1 column. The question wants the row count, so the answer is 6.

Step 4: Why the other options fail:
4 forgets the 2 old rows.
5 and 7 have no calculation behind them.

Final Answer:
The cardinality is 6, which is option (C).
Was this answer helpful?
0