2
$\begingroup$

Why is a set union operation independent in relational algebra? Why it cannot by expressed by the other four basic operations (selection, projection, cartesian product and difference)? What kind of queries require set union?

$\endgroup$

1 Answer 1

3
$\begingroup$

The other operations you list all have the property that they cannot map two values appearing in different columns of their input relations into the same column. Clearly this property is preserved by function composition. But UNION does allow mapping values into the same column, so it cannot be constucted by compositions of the other operations.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.