Der Semi Join berechnet den Anteil eines Natural Joins, welcher nach einer Reduktion auf die linke Relation übrig bleibt.

Definition

Für zwei Relationen und ist das Ergebnis des natürlichen Verbundes

Beispiel

R:
ABCD
1234
4567
7890
S:
AFG
123
789
SEMIJOIN (R, R.A = S.A, S):
ABCD
1234
7890

SQL

SELECT A,B,C,D FROM R NATURAL JOIN S;

oder

SELECT R.A, R.B, R.C, R.D FROM R INNER JOIN S ON R.A = S.A;


This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.