Rabu, 13 November 2013

1.         Apa kegunaan primary key dan foreign key ?
2.         Buatlah Skema Dreamhome Database (lihat table di halaman paling terakhir)!
3.         Masukan data untuk setiap tabel yang dibuat !
4.         Analisa Entitas dari setiap table Dreamhome Database ?
JAWAB
1.         Fungsi Primary key ialah :
Ø  Sebagai pembeda bahwa table yang menggunakan primary key bernilai unik dan non-null
Ø  Berfungsi ketika menampilkan record hasil pencarian (Ketika melakukan searching), sorting, dan operasi query lainnya
Fungsi Foreign key ialah :
Ø  Berfungsi  untuk menghubungkan setiap baris dalam child table yang berisi foreign key dengan baris dari parent table yang berisi primary key yang sesuai.
2.         Berikut adalah skema Dreamhome Database menggunakan “PLATINUM ERwin”
Description: SKEMA DREAMHOME - ERWIN.png 
3.         Input data untuk setiap tabel yang dibuat
Ø  TABLE CLIENT
Description: C:\Users\Acer\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.Word\TABLE CLIENT.PNG
Description: C:\Users\Acer\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.Word\TABLE CLIENT2.png
Description: C:\Users\Acer\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.Word\TABLE CLIENT3.png
Ø  TABLE PRIVATE OWNER
Ø  TABLE PROPERTY FOR RENT
Description: C:\Users\Acer\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.Word\TABLE PROPERTYFORRENT1.png
Description: C:\Users\Acer\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.Word\TABLE PROPERTYFORRENT2.png
Ø  TABLE BRANCH
Description: C:\Users\Acer\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.Word\TABLE BRANCH1.png

Description: C:\Users\Acer\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.Word\TABLE BRANCH2.png

Ø  TABLE STAFF
Description: C:\Users\Acer\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.Word\TABLE STAFF1.png
Description: C:\Users\Acer\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.Word\TABLE STAFF2.png




Ø  TABLE REGISTRATION
 Description: C:\Users\Acer\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.Word\TABLE REGISTRATION1.png
Description: C:\Users\Acer\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.Word\TABLE REGISTRATION2.png



Ø  TABLE VIEWING
Description: C:\Users\Acer\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.Word\TABLE VIEWING1.png
Description: C:\Users\Acer\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.Word\TABLE VIEWING2.png






4.         Analisa Entitas table Dreamhome Database :
1.       Analisa Table Client
Primary key            : Record “ClientNo”
Type Data Table    :
Description: C:\Users\Acer\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.Word\TABLE CLIENT type data.png
2.       Analisa Table Private Owner
Primary key            : Record “OwnerNo”
Type Data Table    :











3.       Analisa Table PropertyForRent
Primary key            : Record “PropertyNo”
Type Data Table    : Lihat gambar
Record                      : Lihat gambar

4.       Analisa Table Branch
Primary key            : Record “BranchNo”
Type Data Table    : Lihat gambar
Record                      : Lihat gambar







5.       Analisa Table Staff
Primary key            : Record “StaffNo”
Type Data Table    : Lihat gambar
Record                      : Lihat gambar

6.       Analisa Table Registration
Primary key            : Record “ClientNo dan BranchNo”
ForeignKey             : Record “ClientNo ->Table Client dan BranchNo -> Table Branch”
Type Data Table    : Lihat gambar
Record                      : Lihat gambar




7.       Analisa Table Viewing
Primary key            : Record “ClientNo dan PropertyNo”
ForeignKey             : Record “ClientNo -> Table Client dan PropertyNo->ProperyForRent”
Type Data Table    : Lihat gambar
Record                      : Lihat gambar


Tidak ada komentar:

Posting Komentar