Semua buku

Profesional

Aplikasi Tentang Pelatih Masuk Mulai membaca

Computer Science · Glosarium

Apa itu Cartesian product, natural join, theta join, left outer join?

Dikenal juga sebagai: Cartesian product (of relations) · natural join · theta join · left outer join

Definition 29.8 University Computer Science — Year 1 · Bab 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.

Baca dalam konteks →