Let R and S be two database relations. If cardinalities of R and S are 4 and 10, respectively, then what will be the number of tuples in R × S, where '×' represents cross product operation?

Let R and S be two database relations. If cardinalities of R and S are 4 and 10, respectively, then what will be the number of tuples in R × S, where '×' represents cross product operation? Correct Answer 40

The correct answer is option 1.

Concept:

Cross product:

Cross product is a way of combining two relation instances. The resulting relation has a schema that contains each of the attributes in both relations being combined.

A cross product is represented by the following notation:

Employee x Parking

Example:

Employee x Parking:

Cross product grows quickly, there are N * M rows in the resulting relation (N = number in Employees, M = number in Parking), and the resulting relation has X + Y columns (attributes) in it (X = number of attributes in Employees, Y = number of attributes in Parking).

The given data,

R =4 rows

S=10 rows, 

R x Y = 40 rows

Hence the correct answer is 40 rows

Related Questions

SQL allows duplicate tuples in relations, and correspondingly defines the multiplicity of tuples in the result of joins. Which one of the following queries always gives the same answer as the nested select * from R where a in (select S.a from S)