QuestionQ242

VerifiedDisplaying Data from Multiple Tables

Examine the BRICKS table:

Question Image

You write the following query:

Question Image

How many rows does the query return?

Explanation

A cross join considers every ordered pair of BRICKS rows. With four distinct weights, the predicate b1.weight < b2.weight retains one pair for each combination of two different weights: (\binom{4}{2}=6).

Community Discussion

No comments yet. Be the first to start the discussion!