[Turn] How to draw a connection diagram of the relational algebra (database relational algebra Cartesian product, [theta] is connected, the equivalent connection, Nature, that the outer connector)

Reprinted Source: https://blog.csdn.net/weixin_46218781/article/details/104698996

Connection of relational algebra is an important but easily confused knowledge, I summarize the knowledge associated with the connection point by referring to a lot of information, and found a relationship between them. Through theoretical knowledge to understand the meaning of important terms related to the connection, and then to understand the relationship between the idea of ​​drawing connections and drawing them through.

Theoretical knowledge

definition:

A Cartesian product of
Here
two, connected to [theta]
Here Insert Picture Description
(a) equivalent connections
Here Insert Picture Description
(ii) Non-equijoins
[theta] is not "=" operator is referred to as a non-connection equivalent connection.

Third, the natural connection
Here Insert Picture Description
V. outer join
External connection divided into three types: left outer join, right outer join, full outer joins.  If we abandon tuple is also stored in the results of the relationship, while in other property over the value, this connection is called an outer join.
(a) left outer join (Left outer join / left join)
If only the left relation R to abandon tuple retention called a left outer join on the basis of natural connection.
(B) the right outer join (rightouter join / right join)
if only to give up the right to be in relationship S tuples connected on the basis of natural reservations called right outer joins.
(C) the full outer join (fullouter join / full join)
left and right tables do not limit, all the records have shown that less than two-table place filled with null.

Paint

Title
Here Insert Picture Description
a Cartesian product of
Here Insert Picture Description
two, connected to [theta]
(a) equivalent connections
Here Insert Picture Description
(ii) Non-equijoins
Here Insert Picture Description
three natural join
Here Insert Picture Description
five external connection
Here Insert Picture Description

Guess you like

Origin www.cnblogs.com/CatisersBlog/p/12643578.html