全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Cartesian product, natural join, theta join, left outer join?

又称: Cartesian product (of relations) · natural join · theta join · left outer join

Definition 29.8 University Computer Science — Year 1 · 第 29 章 — The Relational Model, Relational Algebra and SQL

For rr over UU and ss over VV: the Cartesian product r×sr \times s, for disjoint UU and VV, is the set of the tuples t∪ut \cup u, t∈rt \in r, u∈su \in s. The natural join r⋈sr \bowtie s is the set of the tuples ww over U∪VU \cup V with w[U]∈rw[U] \in r and w[V]∈sw[V] \in s: the pairs that agree on the common attributes, each kept once. A theta join is r⋈cs=σc(r×s)r \bowtie_c s = \sigma_c(r \times s). The left outer join keeps, in addition, each tuple of rr that matches nothing, its attributes from V−UV - U set to NULL.

在原文中阅读 →