Erweiterte Operatoren und Multimengen
Betrachte die folgenden beiden Relationen:
- ´R(A,B) := {(0,1), (2,3), (0,1), (2,4), (3,4)}´
- ´S(B,C) := {(0,1), (2,4), (2,5), (3,4), (0,2), (3,4)}´
Gib die Ergebnisse der folgenden Anfragen an:
- ´delta(S)´ (1P)
- ´gamma_(B,avg(C))(S)´ (1P)
- ´R |⋈ S´ (1P)
- ´R ⋊ S´ (1P)
- ´R |⋈| S´ (1P)
- ´R |⋈|_(R.B < S.B) S´ (1P)
Solution
´{(0,1), (2,4), (2,5), (3,4), (0,2)}´
´{(0,1.5), (2,4.5), (3,4)}´
´{(0,1,"NULL"), (2,3,4), (2,3,4), (0,1,"NULL"), (2,4,"NULL"), (3,4,"NULL")}´
´{(3,4), (3,4)}´
´{(0,1,"NULL"), (2,3,4), (2,3,4), (0,1,"NULL"), ´ ´(2,4,"NULL"), (3,4,"NULL"), ("NULL",0,1), ´ ´("NULL",2,4), ("NULL",2,5), ("NULL",0,2)}´
´{(0,1,2,4), (0,1,2,5), (0,1,3,4), (0,1,3,4), ´ ´(2,3,"NULL","NULL"), (0,1,2,4), (0,1,2,5), (0,1,3,4), ´ ´(0,1,3,4), (2,4,"NULL","NULL"), (3,4,"NULL","NULL"), ´ ´("NULL","NULL",0,1), ("NULL","NULL",0,2)}´
HPI, 2015-06-01, Datenbanksysteme 1, Aufgabe 2.2
2015-07-26 21:30:04 UTC
2015-07-26 21:30:04 UTC