Files
ObsidianVault/SS2026/Datenbanken und Informationssysteme/Relationales Datenmodell/Relationale Algebra.md
T

52 lines
1.6 KiB
Markdown

### Grundoperationen
| # | Operation | Symbol | Wirkung |
| --- | -------------------- | -------- | -------------------------------------------------- |
| 1 | Selektion | $\sigma$ | Wählt Tupel anhand von Bedingungen aus |
| 2 | Projektion | $\pi$ | Wählt Attribut aus und entfernt Dubletten |
| 3 | Vereinigung | $\cup$ | Kombiniert Tupel |
| 4 | Differenz | - | Entfernt Tupel der zweiten Relation aus der ersten |
| 5 | Kartesisches Produkt | $\times$ | Bildet alle Tupel kombinationen |
| 6 | Umbenennung | $\rho$ | Ändert namen |
Selektion:
![[Pasted image 20260722174455.png]]
Projektion:
![[Pasted image 20260722174507.png]]
Vereinigung:
![[Pasted image 20260722174617.png]]
Differenz:
![[Pasted image 20260722174639.png]]
Kartesisches Produkt:
![[Pasted image 20260722174647.png]]
Umbenennung:
![[Pasted image 20260722174806.png]]
Operatorbäume zeigen Berechnungsstruktur eines Ausdrucks:
![[Pasted image 20260722175747.png]]
Durchschnitt:
![[Pasted image 20260722175936.png]]
Natürlicher Verbund (Natural Join):
![[Pasted image 20260722180008.png]]
![[Pasted image 20260722180124.png]]
Theta-Join:
![[Pasted image 20260722180136.png]]
Outer Joins: (behalten tupel ohne joins und füllen NULL ein)
![[Pasted image 20260722180242.png]]
Semi Joins: (nur filter, zweite relation kommt nicht ins ergebnis)
![[Pasted image 20260722180354.png]]
JOIN ÜBERBLICK
![[Pasted image 20260722180407.png]]