Implementing an REA Model in a Relational Database

Slides:



Advertisements
Presentasi serupa
Menggambarkan Data: Tabel Frekuensi, Distribusi Frekuensi, dan Presentasi Grafis Chapter 2.
Advertisements

TURUNAN/ DIFERENSIAL.
Pengujian Hipotesis untuk Satu dan Dua Varians Populasi
This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2006 Microsoft Corporation. All.
Algoritma & Pemrograman #10
Mata Kuliah : ALGORITMA dan STRUKTUR DATA 1.
Perancangan Basis Data Basis Data.  mahasiswa memahami tahap-tahap perancangan basis data 2 TIK •mahasiswa mengetahui bagaimana menentukan dan menempatkan.
Modeling Data in the Organization
Materi Analisa Perancangan System.
Mata Kuliah Teknik Digital TKE 113
Process to Process Delivery
Menempatkan Pointer Q 6.3 & 7.3 NESTED LOOP.
Tugas Praktikum 1 Dani Firdaus  1,12,23,34 Amanda  2,13,24,35 Dede  3,14,25,36 Gregorius  4,15,26,37 Mirza  5,16,27,38 M. Ari  6,17,28,39 Mughni.
SOAL ESSAY KELAS XI IPS.
Algoritma dan Struktur Data
Slide 3-1 Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Revised by IB & SAM, Fasilkom UI, 2005 Exercises Apa saja komponen utama.
1 KOMPONEN PERUMUSAN PROGRAM KOMUNIKASI 1.Assesment - Focus the target audience 2.Planning - Target audience - Key of consumer benefit - Believe of the.
Database Create-Retrieve-Update-Delete (CRUD)
PROSES PADA WINDOWS Pratikum SO. Introduksi Proses 1.Program yang sedang dalam keadaan dieksekusi. 2.Unit kerja terkecil yang secara individu memiliki.
1suhardjono waktu 1Keterkatian PKB dengan Karya Inovatif, Macam dan Angka Kredit Karya Inovatif (buku 4 halaman ) 3 Jp 3Menilai Karya Inovatif.
TRANSFORMASI-Z Transformsi-Z Langsung Sifat-sifat Transformasi-Z
TEKNOLOGI WIRELESS Modul 1 - Teknologi Wireless.
Restricting and Sorting Data
Bilqis1 Pertemuan bilqis2 Sequences and Summations Deret (urutan) dan Penjumlahan.
INTEGRITY CONSTRAINTS Database System Concepts, Second Edition, Chapter 5, page 149.
Risk Management.
Pertemuan 3 Menghitung: Nilai rata-rata (mean) Modus Median
NoObjekPropertiNilai 1FrmsegitigaNameFrmsegiitiga 2FrmsegitigaCaptionLuas Segi Tiga MDI ( Multiple Document Interface ) Pendahuluan MDI singkatan dari.
MEMORY Bhakti Yudho Suprapto,MT. berfungsi untuk memuat program dan juga sebagai tempat untuk menampung hasil proses bersifat volatile yang berarti bahwa.
3 nd Meeting Chemical Analysis Steps and issues STEPS IN CHEMICAL ANALYSIS 1. Sampling 2. Preparation 3. Testing/Measurement 4. Data analysis 2. Error.
Basisdata Pertanian. After completing this lesson, you should be able to do the following Identify the available group functions Describe the use of group.
Model Relasional Part-1
2nd MEETING Assignment 4A “Exploring Grids” Assignment 4 B “Redesign Grids” Create several alternatives grid sysytem using the provided elements: (min.
Pendahuluan 1 Pemerograman Database Client Server.
Slide 1 QUIS Langkah pertama caranya Buat di slide pertama judul Slide kedua soal Slide ketiga waktu habis Slide keempat jawaban yang benar Slide kelima.
LESSON 10: LET’S COOK LEARNING FOCUS USING “a little” USING “a few”
10 Uji Hipotesis untuk Dua Sampel.
LOGO Manajemen Data Berdasarkan Komputer dengan Sistem Database.
LIMIT FUNGSI LIMIT FUNGSI ALJABAR.
TURUNAN DIFERENSIAL Pertemuan ke
AUSTRALIA INDONESIA PARTNERSHIP FOR EMERGING INFECTIOUS DISEASES Excel tingkat menengah – Bagan (lanjutan) Location Date Name.
PEMROGRAMAN PPBD (UAS) SEBELUM MELANGKAH KE TAHAP SELANJUTNYA BERDOA DULU BIAR LANCAR DAN GA EROR
ACCURATE MINI KASUS.
Perancangan Basis Data
1. 2 Work is defined to be the product of the magnitude of the displacement times the component of the force parallel to the displacement W = F ║ d F.
Lecture 8 Set and Dictionary Sandy Ardianto & Erick Pranata © Sekolah Tinggi Teknik Surabaya 1.
Luas Daerah ( Integral ).
PENJUMLAHAN GAYA TUJUAN PEMBELAJARAN:
TCP, THREE-WAY HANDSHAKE, WINDOW
Menu Standard Competence Based Competence.
Retrosintetik dan Strategi Sintesis
Bagaimana merancang diagram E-R yang interaktif
MICROSOFT EXCEL 2000 Bagian #4 GRAPHICS : OBJECT & CHART.
Is Fatimah. 28/03/ Sudahkan memahami SKEMA PENDANAAN (RD, RT, KP, DF) Insentif SINas ?
Pertemuan 5 P.D. Tak Eksak Dieksakkan
PELUANG SUATU KEJADIAN
PERNYATAAN IMPLIKASI DAN BIIMPLIKASI
Struktur Organisasi *Studi Kasus: Restrukturisasi Dinkes
ELEMEN RANGKAIAN LISTRIK
ITK-121 KALKULUS I 3 SKS Dicky Dermawan
MATRIX.
Dasar Pemrograman ARRAY/LARIK.
PENGUJIAN HIPOTESIS RATA-RATA (MEAN) 1 SAMPEL
Kompleksitas Waktu Asimptotik
Bagaimana merancang diagram E-R yang interaktif
JamSenin 2 Des Selasa 3 Des Rabu 4 Des Kamis 5 Des Jumat 6 Des R R S S.
Pohon (bagian ke 6) Matematika Diskrit.
P OHON 1. D EFINISI Pohon adalah graf tak-berarah terhubung yang tidak mengandung sirkuit 2.
WISNU HENDRO MARTONO,M.Sc
Training, Learning, and Development Strategy
Transcript presentasi:

Implementing an REA Model in a Relational Database

IMPLEMENTING AN REA DIAGRAM IN A RELATIONAL DATABASE Ada tiga tahap dalam mengimplementasikan diagram REA ke dalam database relasional: Membuat sebuah tabel untuk: Setiap entitas yang berbeda Setiap hubungan banyak ke banyak Memberikan atribut ke tabel yang tepat Menggunakan kunci luar (foreign key) untuk mengimplementasikan hubungan satu ke satu (one-to-one) dan satu ke banyak (one-to-many)

EXAMPLE Below is a sample REA diagram for a very simple revenue cycle. Customer Inventory Sale Employee Cash Receive Cash Customer 3

EXAMPLE Our first step is to create a table for each event, resource, agent, and many-to-many relationship. Customer Inventory Sale Employee Cash Receive Cash Customer 4

EXAMPLE 5 There are two events. Customer Inventory Sale Employee Cash Receive Cash Customer 5

EXAMPLE 6

EXAMPLE 7 There are two resources. Customer Inventory Sale Employee Cash Receive Cash Customer 7

EXAMPLE 8

EXAMPLE 9 There are two types of agents: customers and employees. Inventory Sale Employee Cash Receive Cash Customer 9

EXAMPLE 10

EXAMPLE 11 There is one many-to-many relationship. Customer Inventory Sale Employee Cash Receive Cash Customer 11

EXAMPLE 12

EXAMPLE Langkah berikutnya adalah memberikan atribut ke tabel yang tepat Atribut pertama merupakan kunci utama (primary key), yang terdiri dari sebuah atribut atau kombinasi dari beberapa atribut yang secara unik mengidentifikasi setiap baris dalam tabel tersebut. 13

EXAMPLE 14

EXAMPLE Atribut lainnya yang perlu diidentifikasi merupakan fakta-fakta yang ingin dikumpulkan yang menggambarkan masing-masing entitas. 15

EXAMPLE 16

EXAMPLE Langkah terakhir adalah menggunakan kunci luar untuk mengimplementasikan hubungan 1 : 1 dan 1 : N Hubungan satu ke banyak, diimplementasikan dengan cara memasukkan kunci utama tabel yang berderajat 1 ke tabel yang berderajat N Hubungan 1 : 1, diimplementasikan dengan cara: Masukkan kunci utama dari entitas yang berderajat minimum 1 ke dalam entitas yang berderajat minimum 0 Masukkan kunci utama dari entitas (kegiatan) yang terjadi pertama kali ke dalam entitas yang terjadi kemudian. 17

EXAMPLE 18 Customer Inventory Sale Employee Receive Cash Customer Cash The relationship between customer and sales is a 1:N relationship. We make the primary key for the entity that occurs only once (customer) serve as a foreign key in the entity that can occur many times (sale). Customer Inventory Sale Employee Cash Receive Cash Customer 18

EXAMPLE 19

EXAMPLE Likewise, the primary key for employee should be a foreign key in the sales table. Customer Inventory Sale Employee Cash Receive Cash Customer 20

EXAMPLE 21

EXAMPLE The primary key for employee should also be a foreign key in the receive cash table. Customer Inventory Sale Employee Cash Receive Cash Customer 22

EXAMPLE 23

EXAMPLE The primary key for customer should also be a foreign key in the receive cash table. Customer Inventory Sale Employee Cash Receive Cash Customer 24

EXAMPLE 25

EXAMPLE 26 Customer Inventory Sale Employee Receive Cash Customer Cash The relationship between sales and receive cash is 1:1. Two guidelines will produce the same result. Put the primary key of the event with the minimum of one (sales) as a foreign key in the event with the minimum of zero (receive cash); or Customer Inventory Sale Employee Cash Receive Cash Customer 26

EXAMPLE 27 Customer Inventory Sale Employee Receive Cash Customer Cash Put the primary key of the event that occurs first (sales) as a foreign key in the event that occurs second (receive cash). Customer Inventory Sale Employee Cash Receive Cash Customer 27

EXAMPLE 28

EXAMPLE 29 Customer Inventory Sale Employee Receive Cash Customer Cash The relationship between sales and inventory is a many-to-many relationship and was already implemented by the creation of a separate table. Customer Inventory Sale Employee Cash Receive Cash Customer 29

EXAMPLE 30 Customer Inventory Sale Employee Receive Cash Customer Cash In the relationship between cash and receive cash, the primary key for the event that occurs once (cash) should be a foreign key in the event that occurs many times (receive cash). Customer Inventory Sale Employee Cash Receive Cash Customer 30

EXAMPLE 31