Training
Tables |
Columns |
Foreign Keys |
abteilung |
(
abtnr
,
abtname
,
budget
,
chefnr
)
|
chefnr » personal.persnr
|
akte |
(
persnr
,
datum
,
position
,
gehalt
)
|
persnr » personal.persnr
|
personal |
(
persnr
,
vname
,
nname
,
projnr
,
telefonnr
,
gehalt
)
|
projnr » projekt.projnr
|
projekt |
(
projnr
,
budget
,
abtnr
)
|
abtnr » abteilung.abtnr
|
DB: PostgreSQL
Explanation: TABLE, PRIMARY KEY, FOREIGN KEY
persnr |
nname |
vname |
anzahl |
1 |
Duck |
Donald |
3 |
2 |
Duck |
Dagobert |
2 |
3 |
Delle |
Zita |
1 |
4 |
Nässe |
Axel |
1 |
5 |
Bolika |
Anna |
1 |
6 |
Gans |
Gustav |
1 |
7 |
Gans |
Gitta |
1 |
8 |
Düsentrieb |
Daniel |
3 |
10 |
Klever |
Klaas |
1 |
21 |
Trophobie |
Klaus |
3 |
51 |
Wein |
Rainer |
0 |
52 |
Zufall |
Rainer |
0 |
71 |
Maus |
Micky |
3 |
72 |
Nass |
Anna |
0 |
73 |
Maus |
Minni |
0 |
81 |
- |
Tick |
1 |
82 |
- |
Trick |
1 |
83 |
Gans |
Franz |
0 |
84 |
- |
Track |
2 |
90 |
Trophobie |
Klaus |
1 |
91 |
Schweiss |
Axel |
4 |
93 |
Sterputz |
Fenn |
1 |
94 |
Elmann |
Heinz |
7 |