Pca155 3
Pca155 3
• A ∪ B = B ∪ A, A ∩ B = B ∩ A, but A – B != B – A
PCA155-3 Madhav Subedi
Cartesian Product(X)
• Cartesian Product in DBMS is an operation used to
merge columns from two relations.
• Generally, a Cartesian Product is never a meaningful
operation when it performs alone.
• However, it becomes meaningful when it is followed
by other operations.
• It is also called Cross Product or Cross Join.
• Result of Cartesian Product of A and B (A X B) has:
– columns: columns of A + columns of B
– Rows: rows of A X rows of B
• The result has every row of A in combination with
every row of B.
Relational Algebra means how to obtain Relational Calculus means what result we
the result. have to obtain.