Natural join if no common attributes

后端 未结 3 489
庸人自扰
庸人自扰 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:11

    If there are no attributes in common between two relations and you perform a natural join, it will return the cartesian product of the two relations.

    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2020-12-16 13:25

    it will return the cartesian product of the tables.if there will be a common attribute then natural join removes duplicacy of common attribute

    0 讨论(0)
提交回复
热议问题