Sabtu, 18 Mei 2019

contoh ERD dan LRS perpustakaan

Contoh Entity Relationship Diagram(ERD) dan Logical Record Structure(LRS) Perpustakaan
Sebelum mulai,sebaiknya kita mengetahui pengertian dan bagian-bagian dari ERD dan LRS
Pengertian Menurut Entity Relationship Diagram (ERD)
          Menurut salah satu para ahli, Brady dan Loonam (2010), Entity Relationship diagram (ERD) merupakan teknik yang digunakan untuk memodelkan kebutuhan data dari suatu organisasi, biasanya oleh System Analys dalam tahap analisis persyaratan proyek pengembangan system. Sementara seolah-olah teknik diagram atau alat peraga memberikan dasar untuk desain database relasional yang mendasari sistem informasi yang dikembangkan. ERD bersama-sama dengan detail pendukung merupakan model data yang pada gilirannya digunakan sebagai spesifikasi untuk database.
Apakah komponen yang terbentuk didalam Entity Relationship Diagram (ERD)?
Dalam pembentukan ERD terdapat 3 komponen yang akan dibentuk yaitu :
a. Entitas
entity (entitas) yaitu suatu obyek yang dapat dibedakan dari lainnya yang dapat diwujudkan dalam basis data. Pengertian lainnya menurut Brady dan Loonam (2010), entitas adalah objek yang menarik di bidang organisasi yang dimodelkan.
Contoh : Pegawai,Datapenyimpanan dan Buku.
b.  Hubungan (relasi/relationship)
Suatu hubungan adalah hubungan antara dua jenis entitas dan direpresentasikan sebagai garis lurus yang menghubungkan dua entitas.
Contoh : petugas Melayani Anggota,relasinya adalah Melayani
c.  Atribut
Atribut memberikan informasi lebih rinci tentang jenis entitas. Atribut memiliki struktur internal berupa tipe data. Jenis-jenis atribut :


·                     Atribut Key
Atribut Key adalah satu atau gabungan dari beberapa atribut yang dapat membedakan semua baris data ( Row/Record ) dalam tabel secara unik. Dikatakan unik jika pada atribut yang dijadikan key tidak boleh ada baris data dengan nilai yang sama
Contoh : No_pegawai,No_anggota
·                     Atribut simple
atribut yang bernilai atomic, tidak dapat dipecah/ dipilah lagi
Contoh : Alamat, penerbit, tahun terbit, nama.
·                     Atribut Multivalue
nilai dari suatu attribute yang mempunyai lebih dari satu (multivalue) nilai dari atrribute yang bersangkutan
Contoh : dari sebuah buku, yaitu terdapat beberapa pengarang.
·                     Atribut Composite
Atribut composite adalah suatu atribut yang terdiri dari beberapa atribut yang lebih kecil yang mempunyai arti tertentu yang masih bisah dipecah lagi atau mempunyai sub attribute.
Contoh : dari entitas nama yaitu nama depan, nama tengah, dan nama belakang
·                     Atribut Derivatif
Atribut yang tidak harus disimpan dalam database Ex. Total. atau atribut yang dihasilkan dari atribut lain atau dari suatu relationship. Atribut ini dilambangkan dengan bentuk oval yang bergaris putus-putus
Derajat relasi atau kardinalitas rasio
Menjelaskan jumlah maksimum hubungan antara satu entitas dengan entitas lainnya
·                     One to One (1:1)
Setiap anggota entitas A hanya boleh berhubungan dengan satu anggota entitas B, begitu pula sebaliknya.
·                     One to many (1:M / Many)
Setiap anggota entitas A dapat berhubungan dengan lebih dari satu anggota entitas B tetapi tidak sebaliknya.
·                     Many to Many (M:M)
Setiap entitas A dapat berhubungan dengan banyak entitas himpunan entitas B dan demikian pula sebaliknya
Simbol-simbol untuk membuat diagram ERD:
contoh Entity Relationship Diagram (ERD) dari perpustakaan : 
1. Menentukan Entitas:
 entitas yg terlibat :
            *Mahasiswa
            *Anggota
            *Petugas
            *Buku
             *Data Penyimpanan
       

2Penentuan Kardinalitas Relasi
Hubungan :
a.Mahasiswa mendaftar menjadi Anggota:
   Tabel Utama:Mahasiswa
   Table Kedua:Anggota
   Attribute penghubung : Nim(Nim di Anggota)      
b.Anggota Meminjam sebuah Buku:
   Tabel Utama:Anggota
   Table Kedua:Buku
   Attribute penghubung : No.Aggota(No.aggota di meminjam)
c.Buku Melalui Pegawai:
   Tabel Utama:Buku
   Table Kedua:Pegawai
   Attribute penghubung : ID(ID di melalui)
d.Pegawai memiliki Data Penyimpanan:
   Tabel Utama:pegawai
   Table Kedua:Data penyimpanan
   Attribute penghubung : Paraf


3.Mentukan Atribut
Atribut
*Mahasiswa :
            -Nim
            -Nama
            -Alamat
            -No.Telp
*Anggota :
            -No.aggota(anggota)
            -Nim
            -No.Telp
*Buku :
            -No.Buku
            -Judul
            -Th.terbit
            -Penerbit
*Pegawai:
           - ID
           - Nama
           - No.Telp
          - Alamat
*Data Penyimpanan:
          - No.Anggota
          - No.Buku
          - Tgl Pinjam
          - Tgl kembali
          - Judul Buku
          - Nama Peminjam
          - Paraf
4.Pembuatan ERD
Pengertian Logical Record Structure(LRS)
LRS adalah representasi dari struktur record-record pada tabel-tabel yang terbentuk dari hasil relasi antar himpunan entitas.
Berikut adalah LRS dari ERD diatas : 
Relasi atau Kardinalitas dari ERD diatas adalah : 


a.Mahasiswa mendaftar menjadi Anggota:
   Relationship : One-to-one (1:1)
b.Anggota Meminjam buku:
   Relationship : One-to-many (1:M)
  
c.Buku Melalui Petugas:
   Relationship : Many-to-1 (M:1)
  
d.Petugas Memiliki Data Penyimpanan:
   Relationship : One-to-Many (1:M)

Komentar

Postingan populer dari blog ini

Cara Membuat Database mysql dari command prompt

Cara membuat databases MYSQL dengan menggunakan CMD

1.Pastikan bahwa kita sudah install aplikasi Xampp kemudian kita aktifkan Apache dan MYSQL .seperti gambar dibawah ini.

2.Buka Command Promt dengan Menekan tombol Windows + R pada keyboardKetik CMD kemudian OK


3.Seperti ini halaman awalnya

4.Setelah itu kita ketik cd c:\lalu kita enter Lalu kita ketik lagi “xampp\mysql\bin\mysql.exe” –u root –p lalu enter
5.Jika sudah ada tulisan “WELCOME TO THE MYSQL” berarti andah sudah berhasil. Pada saat diminta untuk memasukkan password (saat instalasi xampp, secara default tidak ada password), tekan Enter pada keyboard (menandakan tidak ada password saat memasuki user root).

Jumat, 17 Mei 2019

Installation through the Command Line

In order to install Opera web browser through the command line, please follow these steps:
1. Open the Terminal through Ubuntu Dash or the Ctrl+Alt+T shortcut and then enter the following command:
$ wget -qO- https://deb.opera.com/archive.key | sudo apt-key add -
This command will add the Opera keyring.
Tip: You can also copy this command from this tutorial by selecting and copying it through Ctrl+c and then pasting it in the Terminal by right-clicking at the cursor location, and then clicking Paste from the menu.
Add Opera Keyring
Opera is free for Linux systems.
2. Enter the following command in order to add the Opera repository from the official Opera website:
$ sudo add-apt-repository "deb [arch=i386,amd64] https://deb.opera.com/opera-stable/ stable non-free"
Add Opera repository
3. Now that the repository has been added, you can install the opera-stable package through the following command:
$ sudo apt install opera-stable
Please enter y when prompted with a y/n option.
If the following message appears on your system, you can enter Yes if you want your system to update Opera as new versions and updates are released.
Install Opera with apt
The Opera web browser will then be successfully installed on your system. You can now access Opera through the Terminal by entering this command:
$ opera

Uninstall Opera

1. In order to uninstall Opera through the command line, enter the following
$ sudo apt-get remove opera-stable
2. The repository you added will still be residing on your system. Enter the following command in order to remove it:
$ sudo apt-delete-repository "deb [arch=i386,amd64] https://deb.opera.com/opera-stable/ stable non-free
3. Since you had already added a key, you can also wish to remove it. The following command lists all the keys you have added to your system:
$ sudo apt-key list
apt-key list
The important part is to locate the key for Opera and then noting/copying the last 8 alphanumeric characters of the key. You can use this ID to delete a key as follows:
$ sudo apt-key del A5C7 FF72
Delete the Opera key
Opera will now be completely removed from your system.

Install Opera through Ubuntu Software

For a person who does not want to open the Command Line much, installing a software present in the Ubuntu repository through the UI is very simple. On your Ubuntu desktop Activities toolbar, click the Ubuntu Software icon.
Ubuntu Software
Click the search icon and enter Opera in the search bar. The search results will list the Opera entry as follows:
Type Opera in search bar
Click the Opera entry from the search results. The following dialog will appear:
Opera GUI installer
Click the Install button to begin the installation process. The following authentication dialog will display for you to provide the authentication details for a root user as only an authorized user can install a software on Ubuntu.
Authenticate the admin
Enter your password and click the Authenticate button. After that, the installation process will begin, displaying a progress bar as follows.
Opera installing
Opera will then be installed to your system and you will get the following message after successful installation:
Launch Opera
Through the above dialog, you can choose to directly launch Opera and even Remove is immediately for whatever reason.
You can launch Opera any time you want by entering Opera in Ubuntu Dash or access it from the Applications list.
Search Opera application on Desktop

Uninstall Opera

In order to uninstall Opera through the Ubuntu Software, click the Ubuntu Software icon on your Ubuntu desktop Activities toolbar. Search for Opera through the Search button and then click Remove.
Uninstall Opera
Click the Remove button on the opened dialog after which the Authentication dialog will display for you to enter a password of the root user. Enter the password and click Authenticate.
The Opera web browser will then be removed from your system.

Install Opera .deb package downloaded from the official website

1. Open the Official Opera website through an already installed web browser and download the .deb package as follows:
Download Opera .deb Package
2. When you click the Download now button, the following dialog will display:
Save file
3. Select the Save File option and then click OK. The .deb package will be saved to your Downloads folder.
4. Open the Downloads folder and right-click the Opera .deb package and then click Open With Software Install option from the menu. The following dialog will open in Ubuntu Software:
Launch Opera installer
5. Click the Install button. The following authentication dialog will display for you to provide the authentication details for a root user as only an authorized user can install a software on Ubuntu.
Get sudo permissions
Enter your password and click the Authenticate button. After that, the installation process will begin, displaying a progress bar as follows.
Installing the application
The following dialog will indicate the successful installation of Opera on your system.
Opera successfully installed
You can now access it through the Dash or the Applications list.

Uninstall

Right-click the Opera .deb package and click Open With Software Install from the menu. Click the Install button and then provide authentication details. You can then remove Opera by clicking the Remove button as follows:
Uninstall the app
Click the Remove button on this dialog and then provide authentication details. Opera will then be removed from your system.
In this article, you learned to install and uninstall the popular Opera web browser through the command line, the Ubuntu Software and also through a .deb package that you can download from the official Opera website.