Q.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 ? (A) 4 (B) 5 (C) 6 (D) 7
You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
Start your 14-day free trial to unlock the full solution →Cardinality refers to the number of tuples (rows) in a relation; deleting attributes affects only the structure, not the row count, so starting with 2 tuples and adding 4 more gives a cardinality of 6.
Understanding what happens to a relation when we modify its structure or content requires clarity on two fundamental terms: cardinality and degree. Cardinality is the number of tuples (rows) in a relation—essentially, how many records the table holds. Degree, on the other hand, is the number of attributes (columns)—the structure of the relation itself.
The question begins with a relation containing 2 tuples and 3 attributes. Picture a small table with three columns and two rows of data. Now, two operations are performed: first, 2 attributes are deleted, and second, 4 tuples are added.
Deleting attributes changes the degree of the relation. If we remove 2 out of 3 attributes, we are left with a single-column table. This operation affects the structure—the width of the table—but it does not touch the number of rows. The 2 tuples that were already present remain in the relation; they simply have fewer fields now. …
Unlock everything free for 14 days
- Full step-by-step solutions
- Concept-first explanations
- Methods, shortcuts & mistakes
- PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.