Relation Key :
- Entitas account :
Candidat Key : account-number,
balance
Primary Key : account-number
Alternate Key : balance
Foreign Key : -
- Entitas customer :
Candidat Key : customer-name,
customer-city, customer-street
Primary Key : customer-name
Alternate Key : customer-city,
customer-street
Foreign Key : -
- Entitas loan :
Candidate Key : loan-number,amount
Primary Key :
loan-number
Alternate Key :
amount
Foreign Key : -
- Entitas Branch :
Candidate Key : branch-name, branch-city,assets
Primary Key : branch-name
Alternate Key :
branch-city, assets
Foreign Key : -
Latihan 2
1. Tabel Siswa, Pelajaran, Guru
a. Tabel Siswa
NIS
|
namaSiswa
|
tglLahir
|
jenisKelamin
|
530050
| Adi Surya |
07/08/1993
|
Laki-Laki
|
530051
|
Muhammad Abdul Jalil
|
13/11/1993
|
Laki-Laki
|
530052
|
Waidi
|
06/07/1993
|
Laki-Laki
|
530053
|
Isti
|
11/12/1993
|
Perempuan
|
530054
| Astri |
13/06/1994
|
Perempuan
|
b. Tabel Pelajaran
kodeMapel
|
namaMapel
|
guruPengampu
|
P0001
|
PAI
| Wadi |
P0002
|
Bahasa Jawa
|
Kusharianto
|
P0003
|
Matematika
| Yoyok |
P0004
|
Bahasa Indonesia
| Yati |
P0005
|
Bahasa Inggris
|
Mariam
|
c. Tabel Guru
NIP
|
Nama
|
Alamat
|
noTelp
|
9382433031
| Wadi |
Pati
|
085640666777
|
9382433032
| Kusharianto |
Pati
|
087733678987
|
9382433033
|
Yoyok
|
Pati
| 081325888333 |
9382433034
|
Yati
|
Pati
|
087733456789
|
9382433035
|
Mariam
|
Pati
| 085640444555 |
2. Tabel Keterhubungan
Entity
|
Relationship
|
Entity
|
Guru
|
Mengajar
|
Pelajaran
|
Siswa
|
Mengambil
|
Pelajaran
|
3. Atribut Kunci
Entity
|
Atribut
|
Siswa
|
NIS,namaSiswa, tglLahir, jenisKelamin
|
Pelajaran
|
kodeMapel, namaMapel, guruPengampu
|
Guru
|
NIP, Nama, Alamat, noTelp
|
Primary Key
Entity
|
Atribut
|
Siswa
|
NIS
|
Pelajaran
|
kodeMapel
|
Guru
|
NIP
|
4. ERD
» Jangan lupa dilike kalau bermanfaat.