Consider the following relations X(S, Si, C) and Y(S, P, D) . Number of tuples…

2023

 Consider the following relations X(S, Si, C) and Y(S, P, D) .

Number of tuples obtained by applying cartesian product over X and Y are :

  1. A.

    16

  2. B.

    12

  3. C.

    04

  4. D.

    32

Attempted by 412 students.

Show answer & explanation

Correct answer: A

Answer: 16 tuples.

Explanation:

  1. Count the tuples in each relation.

    • Relation X has 4 tuples.

    • Relation Y has 4 tuples.

  2. Apply the rule for cartesian product: multiply the counts of tuples from each relation.

  3. Compute the result: 4 × 4 = 16.

Note: The cartesian product does not consider matching attribute values; it pairs every tuple of the first relation with every tuple of the second, regardless of attribute values.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Mppsc Assistant Professor