1 / 18

Basis data - day 2

Politeknik Elektronika Negeri Surabaya Departemen Teknik Informatika dan Komputer. Basis data - day 2. Rachmat wahyu pramono 2110121024 Dosen Pembimbing : Rengga Asmara, S . Kom , OCA. Day two topics. Definisi ER Data Model Jenis Entitas, Atribut dan Notasi ER Diagram

fruma
Download Presentation

Basis data - day 2

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Politeknik Elektronika Negeri Surabaya Departemen Teknik Informatika dan Komputer Basis data - day 2 Rachmat wahyu pramono 2110121024 DosenPembimbing: RenggaAsmara, S. Kom,OCA

  2. Day two topics • Definisi ER Data Model • Jenis Entitas, Atribut dan Notasi ER Diagram • Relasi dan Rasio Kardinalitas

  3. definisi ER model • Entity (entitas) • Sebuah himpunan objek nyata yang bersifat kongrit dan dapat dibedakan dengan objek lain • relation model (Model hubungan) • Pemodelan sebuah hubungan data base yang menghubungan antar objek atau entitas dengan kondisi tertentu • Entity relationship model • Pemodelan sebuah data base dengan menggambarkan tipe objek yang mewakili data dan hubungan antar objek yang menghasilkan ERD (Entity relationship model Diagram)

  4. Day two topics • Definisi ER Data Model • Jenis Entitas, Atribut dan Notasi ER Diagram • Relasi dan Rasio Kardinalitas

  5. Jenis Entitas, Atribut dan Notasi ER Diagram • Entitas • Tiap entitas memiliki atribut • Entitas memiliki atribut utama yang unik disebut primary key • Entitas yang tidak ada primary key disebut weak entity • Contoh Atribut : • Nama • Umur • Contoh primary key : • Nomor KTP • NIP • Contoh Weak entity : • Entitas Jumlah • Entitas Total

  6. Atribut • Atribut adalah objek tunggal yang berisi keterangan/informasi/nilai yang berada di entitas • Contoh atribut dalam entitas mahasiswa : • NRP  primary key • Nama • Alamat • Jurusan • dll.

  7. Atribut • Simple atau Atomic • Atribut yang tidak bisa dibagi menjadi lebih mendasar • Contoh Simple atribut : • Kota • Umur • dll

  8. Atribut • Composite • Atribut yang terdiri dari gabungan Simple atau Atomic atribute • Contoh Composite atribut : • Alamat, tediri dari : • Jalan • Desa • Kota

  9. Atribut • Singel Value • Atribut yang memiliki hanya satu nilai dan tidak dapat berubah • Contoh Singel Value • atribut : • Tanggal lahir seseorang • Kode produksi • Jenis Kelamin • dll

  10. Atribut • Multi Value • Atribut yang memiliki lebih dari satu nilai dan tidak dapat berubah • Contoh Multi Value • atribut : • Hobby • Nomor Hand Phone • dll

  11. Atribut • Null Value • Atribut yang tidak memiliki nilai • Contoh Null Value • atribut : • Saat status BELUM KAWIN maka atribut Nama_Istri akan kosong • Saat stock KOSONG maka atribut harga bernilai 0

  12. Atribut • Drived • Atribut yang nilai didapat dari penurunan atribut lain atau perhitungan algoritma • Contoh Null Value • atribut : • Indeks Prestasi • Atribut Total_Beli • Lama Bekerja

  13. Notasi • Notasi merupakan simbol – simbol yang digambarkan ke ERD

  14. Day two topics • Definisi ER Data Model • Jenis Entitas, Atribut dan Notasi ER Diagram • Relasi dan Rasio Kardinalitas

  15. Relasi dan rasio kardinalitas • Derajat Relasi : • Berderajat satu (Unary) • Berderajat dua (Binary) • Berderajat tiga (Trinary) • Relasi • Merupakan hubungan antara entitasyang memiliki derajat tertentu dan dapat memiliki sebuah atribut Trinary Binary Unary

  16. Relasi dan rasio kardinalitas • Kemungkinan : • One to One (1 - 1) • One to Many(1 - N) • Many to One (N - 1) • Rasio Kardinalitas • Dalam relasi binary atau trinary terdapat 3 kemungkinan kardinalitas 1 - 1 1 - N N - 1

  17. Coming up soon...Basis data day 3

  18. SekianTerima Kasih Rachmat Wahyu Pramono : R Wahyu Pramono || interlocalhost@student.eepis-it.edu

More Related