-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelalg.exp
More file actions
30 lines (24 loc) · 829 Bytes
/
relalg.exp
File metadata and controls
30 lines (24 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* Zum copy-pasten: σπρ */
// Beispiel:
/*person[X]|pid=person|(
ρ|(person)|((π|person| σ|numMovies>=2| ρ|(person, numMovies)| |person|F|count(*)|(
plays [X|movie|
σ|type="director"| crew [X]|person=pid|
σ|name="PJ"| person
)) except (
π|person| σ|role="hobbit"| plays
))
)*/
/*(π|beschreibung| symptom) except
(π|symptom| wirktGegen)
*/
// es wird "> 1" statt "> 10" gefragt, da nur sehr wenige Daten in den Relationen stehen
// und ansonsten kein Ergebnis erscheinen würde.
σ|numPat/numPfle > 1| (
ρ|(sHaus, sStock, sNr, numPat)||stationHaus, stationStockwerk, stationNr|F|count(*)|(
patientInRaum
) [X]|sHaus, sStock, sNr|
ρ|(sHaus, sStock, sNr, numPfle)||stationHaus, stationStockwerk, stationNr|F|count(*)|(
beschaeftigt
)
)