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
projnr |
abtnr |
vname |
nname |
1 |
1 |
Donald |
Duck |
2 |
1 |
- |
- |
3 |
10 |
Micky |
Maus |
4 |
3 |
Axel |
Schweiss |
5 |
4 |
- |
- |
6 |
1 |
- |
- |
7 |
4 |
Tick |
- |
8 |
8 |
- |
- |
9 |
4 |
- |
- |
10 |
7 |
- |
- |
23 |
3 |
- |
- |