自然和左外连接的等价

时间:2014-10-09 06:48:33

标签: sql database

根据数据库中的等价规则(在查询优化中)。在什么条件下,选择over-outer-join相当于选择自然连接。

Query 1:
select * from E1 natural join E2 where E1.A>10

Query 2:
select * from E1 left outer join E2 on E1.B=E2.C where E1.A>10

Ie. sigma(theta){E1 leftouterjoin E2} is equivalent to sigma(theta){E1 natural-join E2}

提前致谢.....

0 个答案:

没有答案