Natural join if no common attributes

后端 未结 3 493
庸人自扰
庸人自扰 2020-12-16 12:41

What will natural join return in relational algebra if tables don\'t have attributes with same names? Will it be null or the same as cross-product (Cartesian operator)?

3条回答
  •  佛祖请我去吃肉
    2020-12-16 13:24

    A cartesian product of two tables will be returned.This is because when we perform any JOIN operation on two tables a cartesian product of those tables is performed and then based on any select condition in WHERE clause the resultant rows are returned.But here as there are no common columns the process stops after cartesian product.

提交回复
热议问题