Anda di halaman 1dari 5

5.

Logical Database Design


5.1 Derive Relations For Logical Data Model
a. Strong Entity Type
Yang termasuk ke strong entity types :
TenagaLL (noLL, nama, jalan, desa, kecamatan, kabupaten, noHp, jK, jabatan);
Desa (kodeDesa, namaDesa);
Keluarga (KKI);
KelompokBina (noKel, namaKel);
MatPembinaan(noMat, materi);
b. Weak Entity Type
Yang merupakan weak entity type adalah
Pembinaan (noKel, noLL. noMat, tanggal, KKI);
karena bergantung pada adanya kelompokBina dan tenagaLL yang melakukan pembinaan
c. One to Many (1:*) Binary Relationship Types
tenagaLL Membina kelompokBina

d. One to One (1:1) Binary Relationship Types


1) Mandatory Participation on Both Sides of 1:1 Relationship
Tidak ada.
2) Mandatory Participation on one Side of a 1:1 Relationship
TenagaLL Bertanggungjawab ke Desa
3) Optional Participation on both Side of a 1:1 Relationship
Tidak ada.
e. One-to-one (1:1) Recursive Relationships
TenagaLL Mengawasi TenagaLL

f. Many-to-many (*:*) Binary Relationship Types


Keluarga Tergabung KelompokBina

Primary key KKI, noKel.


g. Complex Relationship Types

TenagaLL (noLL, nama, jalan, desa, kecamatan, kabupaten, noHp, jK, jabatan);
Keluarga (KKI, noKel);
KelompokBina (noKel, namaKel, noLL);
MatPembinaan(noMat, materi);
Dibuat relasi menjadi
Pembinaan (noKel, noLL. noMat, tanggal, KKI);
Primary key noKel, tanggal.
h. Multi-Valued Attribut
Keluarga yang menghadiri Pembinaan
TenagaLL (noLL, nama, jalan, desa, Keluarga (KKI)
kecamatan, kabupaten, noHp, jK, jabatan) Primary Key KKI
Primary Key noLL
KelompokBina (noKel, namaKel, noLL) Bergabung (KKI, noKel)
Primary Key noKel Primary Key KKI, noKel
Foreign Key noLL references(tenagaLL) Foreign Key KKI references(keluarga)
Foreign key noKel references (kelompokBina)
Desa (kodeDesa, namaDesa, noLL) Pembinaan (noKel, noLL, noMat, tanggal)
Primary Key kodeDesa Primary Key noKel, tanggal
Foreign Key noLL references(teganaLL) Foreign Key noKel references (kelompokBina)
Foreign Key noMat references (matPembinaan)
Foreign Key noLL references (tenagaLL)
Mengawasi (noLLplkb, noLLppkbd) Hadir (noKel, tanggal, KKI)
Primary Key noLLplkb, noLLppkbd Primary Key tanggal, KKI
Foreign Key noLLplkb references Foreign Key noKel references (kelompokBina)
(tenagaLL) Foreign Key tanggal references (pembinaan)
Foreign key noLLppkbd references
(tenagaLL)
MatPembinaan (noMat, materi)
Primary Key noMat
5.2 Validate Relations Using Normalization

Anda mungkin juga menyukai