-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsyntax.readme
More file actions
35 lines (27 loc) · 756 Bytes
/
syntax.readme
File metadata and controls
35 lines (27 loc) · 756 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
28
29
30
31
32
33
34
35
Syntaxbeispiele:
Selektion:
σ|matNr=1234321| student
σ|name="Bob"| student
Projektion:
π|att1, att2| rel
Umbenennung:
- Attribute umbenennen
ρ|(newAtt1, newAtt2, newAtt3)| rel
- Relation umbenennen
ρ|newRel| oldRel
- Beides umbenennen
ρ|newRel(newAtt1, newAtt2, newAtt3)| oldRel
Aggregation:
|att1, att2|F|count(*)| rel
|att1, att2|F|count(att)| rel
F|count(*)| rel
F|sum(att)| rel
Join:
rel1 [X]|pkey=fkey| rel2
rel1 [X|pkey=fkey| rel2
rel1 X]|pkey=fkey| rel2
rel1 [X]|att1, att2| rel2
Setoperatoren:
rel1 union rel2
rel1 intersect rel2
rel1 except rel2