Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 9 Relational Database Design by ER- to-Relational Mapping.

Slides:



Advertisements
Presentasi serupa
Pertemuan Minggu Ke-10.
Advertisements

Yufis Azhar – Teknik Informatika – UMM
Model Relasional Part-1
PEMETAAN – RELATIONAL - SQL
PEMROGRAMAN BASIS DATA
ERD (Entity Relationship Diagram)
Pemrograman Sistem Basis Data
2. Introduction to Algorithm and Programming
1 Analisis dan Perancangan Perangkat Lunak PEMODELAN DATA.
C H A P T E R 3 Chapter 8 - Process Modeling.
Game Theory Purdianta, ST., MT..
K-Map Using different rules and properties in Boolean algebra can simplify Boolean equations May involve many of rules / properties during simplification.
Perancangan Database Pertemuan 07 s.d 08
Entity-Relationship Modeling
BLACK BOX TESTING.
Presented By : Group 2. A solution of an equation in two variables of the form. Ax + By = C and Ax + By + C = 0 A and B are not both zero, is an ordered.
PRAKTIKUM 3 PEMROGRAMAN BASIS DATA. Menghapus baris  Deleting rows- DELETE FROM Use the DELELE FROM command to delete row(s) from a table, with the following.
Pemodelan Data (Data Modeling)
1 Pertemuan 09 Kebutuhan Sistem Matakuliah: T0234 / Sistem Informasi Geografis Tahun: 2005 Versi: 01/revisi 1.
PEMBUATAN MODEL DATA dan DESAIN DATABASE
Review. Fakultas Ilmu Komputer UI 2 Database Introduction Database vs File Processing Database Actors DBA, Database Designers, Database users, Application.
1 Pertemuan > > Matakuliah: >/ > Tahun: > Versi: >
PEMBUATAN MODEL DATA DAN DESAIN DATABASE (lanjutan)
Pertemuan <<1>> Pengantar tentang database(01)
PERTEMUAN KE-6 UNIFIED MODELLING LANGUAGE (UML) (Part 2)
1 Minggu 10, Pertemuan 20 Normalization (cont.) Matakuliah: T0206-Sistem Basisdata Tahun: 2005 Versi: 1.0/0.0.
Mapping dari ERD ke Tabel
9.3 Geometric Sequences and Series. Objective To find specified terms and the common ratio in a geometric sequence. To find the partial sum of a geometric.
Binary Search Tree. Sebuah node di Binary Search Tree memiliki path yang unik dari root menurut aturan ordering – Sebuah Node, mempunyai subtree kiri.
Backup DISUSUN OLEH: LUTHFAN HADI PRAMONO, S.ST HANYA DIPERGUNAKAN UNTUK KEPENTINGAN PENGAJARAN DI LINGKUNGAN POLITEKNIK TELKOM TK3233.
Dasar query basis data dengan SQLite
Pertemuan ke - Perancangan Basis Data Relasional Menggunakan ERD
Pertemuan Ke-3 Model Data
Jartel, Sukiswo Sukiswo
Pertemuan Ke-6 Aljabar Relasional
Pertemuan 2 Model Data, Relational Data Model, Database Schema, DDL
Matakuliah : M0086/Analisis dan Perancangan Sistem Informasi
Latihan Jelaskan : a) relasi b) atribut c) domain
AnalisIS & Perancangan sistem
Analisis Perancangan Basis Data dan CDM
KOMUNIKASI DATA Materi Pertemuan 3.
Pertemuan after UTS Structure Query Language (SQL)
MODEL RELASIONAL.
Rekayasa Perangkat Lunak Class Diagram
PDM.
Model Berorinetasi Data
Erika Devi, Fajar Agung N Fakultas Ilmu Komputer UDINUS
Kode Hamming.
KOMUNIKASI DATA S. Indriani L, M.T
Pertemuan #3 Data Modeling Using the Entity-Relationship Model
CLASS DIAGRAM.
Teori Dasar Sistem.
ER-D (Entity Relationship Diagram)
All sections to appear here
Mapping Skema Database
Algorithms and Programming Searching
REAL NUMBERS EKSPONENT NUMBERS.
Unified Modeling Language User Guide
CONCEPTUAL MODEL ER-D (Entity Relationship Diagram)
Metodologi - Perancangan Basis Data Logika
Kk ilo Associative entity.
MODEL RELASIONAL Desain Basis Data.
Teknik Modulasi Pertemuan 07
Pertemuan 4 CLASS DIAGRAM.
Model Berorinetasi Data
Database User Account.
08 Pemodelan Entitas-Relasi Mata Kuliah: Basis Data ILMU KOMPUTER
Tim Dosen Basis Data Fakultas Ilmu Komputer UDINUS
Al Muizzuddin F Matematika Ekonomi Lanjutan 2013
Rank Your Ideas The next step is to rank and compare your three high- potential ideas. Rank each one on the three qualities of feasibility, persuasion,
Transcript presentasi:

Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 9 Relational Database Design by ER- to-Relational Mapping

Copyright © 2011 Ramez Elmasri and Shamkant Navathe Chapter 9 Outline  Relational Database Design Using ER-to- Relational Mapping

Copyright © 2011 Ramez Elmasri and Shamkant Navathe Relational Database Design by ER-to-Relational Mapping  Design a relational database schema  Based on a conceptual schema design  Seven-step algorithm to convert the basic ER model constructs into relations

Copyright © 2011 Ramez Elmasri and Shamkant Navathe

ER-to-Relational Mapping Algorithm  COMPANY database example  Assume that the mapping will create tables with simple single-valued attributes  Step 1: Mapping of Regular Entity Types  For each regular entity type, create a relation R that includes all the simple attributes of E  Called entity relations Each tuple represents an entity instance

Copyright © 2011 Ramez Elmasri and Shamkant Navathe ER-to-Relational Mapping Algorithm (cont’d.)  Step 2: Mapping of Weak Entity Types  For each weak entity type, create a relation R and include all simple attributes of the entity type as attributes of R  Include primary key attribute of owner as foreign key attributes of R

Copyright © 2011 Ramez Elmasri and Shamkant Navathe ER-to-Relational Mapping Algorithm (cont’d.)

Copyright © 2011 Ramez Elmasri and Shamkant Navathe ER-to-Relational Mapping Algorithm (cont’d.)  Step 3: Mapping of Binary 1:1 Relationship Types  For each binary 1:1 relationship type Identify relations that correspond to entity types participating in R  Possible approaches: Foreign key approach Merged relationship approach Crossreference or relationship relation approach

Copyright © 2011 Ramez Elmasri and Shamkant Navathe ER-to-Relational Mapping Algorithm (cont’d.)  Step 4: Mapping of Binary 1:N Relationship Types  For each regular binary 1:N relationship type Identify relation that represents participating entity type at N-side of relationship type Include primary key of other entity type as foreign key in S Include simple attributes of 1:N relationship type as attributes of S

Copyright © 2011 Ramez Elmasri and Shamkant Navathe ER-to-Relational Mapping Algorithm (cont’d.)  Alternative approach Use the relationship relation (cross-reference) option as in the third option for binary 1:1 relationships

Copyright © 2011 Ramez Elmasri and Shamkant Navathe ER-to-Relational Mapping Algorithm (cont’d.)  Step 5: Mapping of Binary M:N Relationship Types  For each binary M:N relationship type Create a new relation S Include primary key of participating entity types as foreign key attributes in S Include any simple attributes of M:N relationship type

Copyright © 2011 Ramez Elmasri and Shamkant Navathe ER-to-Relational Mapping Algorithm (cont’d.)  Step 6: Mapping of Multivalued Attributes  For each multivalued attribute Create a new relation Primary key of R is the combination of A and K If the multivalued attribute is composite, include its simple components

Copyright © 2011 Ramez Elmasri and Shamkant Navathe ER-to-Relational Mapping Algorithm (cont’d.)  Step 7: Mapping of N-ary Relationship Types  For each n-ary relationship type R Create a new relation S to represent R Include primary keys of participating entity types as foreign keys Include any simple attributes as attributes

Copyright © 2011 Ramez Elmasri and Shamkant Navathe Discussion and Summary of Mapping for ER Model Constructs

Copyright © 2011 Ramez Elmasri and Shamkant Navathe Discussion and Summary of Mapping for ER Model Constructs (cont’d.)  In a relational schema relationship, types are not represented explicitly  Represented by having two attributes A and B: one a primary key and the other a foreign key

Copyright © 2011 Ramez Elmasri and Shamkant Navathe Summary  Map conceptual schema design in the ER model to a relational database schema  Algorithm for ER-to-relational mapping  Illustrated by examples from the COMPANY database