Take the 2-minute tour ×
MathOverflow is a question and answer site for professional mathematicians. It's 100% free, no registration required.

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?

share|improve this question
add comment

1 Answer 1

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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