Selasa, 02 Oktober 2012

TUGAS SBD Minggu Ke-4

Latihan 1

Dalam bagan tersebut terdapat 4 Entitas, yaitu :
1. Entitas Account
    Candidate Key : Account Number ; Balance
    Primary Key : Account Number
    Alternate Key : Balance
    Foreign Key : Balance

2. Entitas Customer
    Candidate Key : Customer Name ; Customer Street
    Primary Key : Customer Name
    Alternate Key : Customer Street
    Foreign Key :

3. Entitas Branch
    Candidate Key : Branch Name
    Primary Key : Branch Name
    Alternate Key : -
    Foreign Key : Assets

4. Entitas Loan
    Candidate Key : Loan Number
    Primary Key : Loan Number
    Alternate Key : -
    Foreign Key :

Latihan 2
1. 3 buah entitas dengan masing-masing 5 atribut :




2. Tabel keterhubungan antar entitas

3. Atribut Kunci dari masing-masing entitas
    a. Entitas GURU
        Candidate Key : NIP ; Kode Guru ; Nama
        Primary Key : NIP
        Alternate Key : Kode Guru ; Nama
        Foreign Key :

    b. Entitas PELAJARAN 
        Candidate Key : Kode Pelajaran ; Nama Pelajaran ; Jumlah KD
        Primary Key : Kode Pelajaran
        Alternate Key : Nama Pelajaran ; Jumlah KD
        Foreign Key :

     c. Entitas SISWA
        Candidate Key : NIS ; Nama ; TTL
        Primary Key : NIS
        Alternate Key : Nama ; TTL
        Foreign Key :

4. ER- Diagram







Tidak ada komentar:

Posting Komentar