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
|
530060
|
Anggit Eko
|
25/09/1993
|
Laki-Laki
|
530061
|
Kiki Tri
|
03/08/1993
|
Laki-Laki
|
530062
|
Herry Saputra
|
18/11/1992
|
Laki-Laki
|
530063
|
Fitria
|
17/03/1993
|
Perempuan
|
530064
|
Muklis
|
08/12/1992
|
Laki-Laki
|
b. Tabel Pelajaran
kodeMapel
|
namaMapel
|
guruPengampu
|
P0001
|
PAI
|
Kholil
|
P0002
|
Bahasa Jawa
|
Eko Anggit
|
P0003
|
Matematika
|
Hanif
|
P0004
|
Bahasa Indonesia
|
Tri Astuti
|
P0005
|
Bahasa Inggris
|
Agung
|
c. Tabel Guru
NIP
|
Nama
|
Alamat
|
noTelp
|
9382433081
|
Kholil
|
Pati
|
085250458967
|
9382433082
|
Eko Anggit
|
Pati
|
085250409575
|
9382433083
|
Hanif
|
Pati
|
085348772318
|
9382433084
|
Tri Astuti
|
Pati
|
085348998756
|
9382433085
|
Agung
|
Pati
|
085348769878
|
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
0 comments:
Posting Komentar