# Problem

When there exists two sets, R and S, and we take the difference R - S, we remove the elements from R that exist in S.

For cases where the number of columns are the same on both sides, such as the example below, this works fine:

# Question

However, what happens when R and S have a different amount of columns?

• Why are images of text, code and mathematical expressions discouraged? Please put everything needed to ask your question in your post (using text for what can be given in text), not just at a link. Commented Feb 19, 2023 at 20:06
• Relational algebra <> set algebra. So relational algebra difference <> set difference. Depending on the algebra, a relation is not necessarily characterizable as a set of tuples. There are many relational algebras. They differ in operators & even what a relation is. Give operator definitions & your reference for yours. Eg textbook name, edition & page. PS What do you mean, "what happens"? You can't use it. Commented Feb 19, 2023 at 20:12