Relationships among FDs and ERDs.

Slides:



Advertisements
Similar presentations
1 Entity-Relationship Modeling. 2 ER Graphical modeling technique Informal, understandable for laymen Coarse technique to design tables Provides rules.
Advertisements

Translating from ER to Relationship Schema Adapted from Juliana Freire.
Entity Relationship Modeling BUS112 Professor Kwan.
Entity PrimaryKey Attribute relationship Cardinality: zero to many Cardinality: one and only one Cardinality: one to many Explanation Entity Relationship.
Entity Relationship Model Chapter 6. Basic Elements of E-R Model Entity Object of the real world that stores data. Eg. Customer, State, Project, Supplier,
Chapter 91 ER & EER to Relational Mapping. Chapter 92 ER to Relational Mapping Step 1: For each regular entity type E in the ER schema, create a relation.
Lecture 1 of Advanced Databases Basic Concepts Instructor: Mr.Ahmed Al Astal.
CS 370 Database Systems Lecture 9 The Relational model.
1 CS 430 Database Theory Winter 2005 Lecture 15: How to Convert an ER Model to Relations.
Database Design – Lecture 4 Conceptual Data Modeling.
Hoi Le. Why database? Spreadsheet is not good to: Store very large information Efficiently update data Use in multi-user mode Hoi Le2.
Relational Database Design by ER- and EER-to-Relational Mapping
Lecture 5 Supplement – ER Model & Mapping to Relational Model
Week 03 – ER Diagram INFOSYS 222.
Let try to identify the conectivity of these entity relationship
Relational Schema Design II
Relational Database Design by ER- and EER-to- Relational Mapping
Introduction to the database systems (1)
Chen’s Type Guidance.
Enhanced Entity-Relationship (EER) Modeling
SEEM3430: Information Systems Analysis and Design
Entity-Relationship Model
Normal Forms.
Database Design – Lecture 4
Relational Database Design by ER- and EER-to-Relational Mapping
ER- and EER-to-Relational
Relational Database Design by ER- and EERR-to-Relational Mapping
Relational Database Design by ER-to-Relational Mapping
INF385T: Information Modeling — Class 11 Relational Database Design from ER Models Presented November 2 Karen Wickett,
Outline of the ER Model By S.Saha
CIS 207 The Relational Database Model
Chapter (9) ER and EER-to-Relational Mapping, and other Relational Languages Objectives How a relational database schema can be created from a conceptual.
Assignment 4 Map entities with relationships to relational schemas.
Chapter (9) ER and EER-to-Relational Mapping, and other Relational Languages Objectives How a relational database schema can be created from a conceptual.
Figure Specialization Hierarchy
Chapter 15 Basics of Functional Dependencies and Normalization for Relational Databases.
CMPE 226 Database Systems February 21 Class Meeting
Relational Model and ER Model: in a Nutshell
Order Database – ER Diagram
Adrian MacCallum & Rodger Morash
Transforming E/R to Relational Model.
מודל הנתונים.
Module 5: Overview of Normalization
Module 8 – Database Design Using the E-R Model
Multivalued Dependencies & Fourth Normal Form (4NF)
בסיסי נתונים - מצגת ההרצאה - 1.
Table Normal Forms.
Complete inference rules: FD: non-trivial
CS 3630 Database Design and Implementation
Database Systems Instructor Name: Lecture-11.
Initial Design of Entity Types: EMPLOYEE, DEPARTMENT, PROJECT, DEPENDENT Gender.
E-R DIAGRAMS TO RELATIONAL SCHEMA
Relational Database Design by ER- and EER-to-Relational Mapping
Chapter 7: Entity-Relationship Model
System Analysis and Design
Chapter 4 Entity Relationship (ER) Modeling
Entity-Relationship Diagram (ERD)
Relational Database Design
Lecture 04 Normalization.
E.R. Examples.
Database Management system
Database Management system
Chapter (7) ER-to-Relational Mapping, and other Relational Languages
Mapping an ERD to a Relational Database
Summary of Transformation Rules
CS4222 Principles of Database System
Shelly Cashman: Microsoft Access 2016
Chapter 7a: Overview of Database Design -- Normalization
Chapter 6b: Database Design Using the E-R Model
Chapter 3 The Relational Model
Presentation transcript:

Relationships among FDs and ERDs. In the previous lectures, we saw that a schema that can be generated from a mapped translation satisfies 3NF. In reverse direction, we can generate all FDs from an ERD. We discuss these FDs from Intra FDs and Inter FDs.

Cont’ (1) Intra FDs: - The identifier of an entity determines all non-key attributes. (2) Inter FDs

Inter FDs Suppose we have a relationship R between entity A and entity B, where whose primary keys are A# and B#. Then, we have the following FDs between two entities, depending on cardinality: (a) 1:1 A# --> B# B# --> A# (b) 1:N B# --> A# (note: A# -/-> B#)

Inter FDs (c) M:N no FDs between A# and B# (note: A# -/-> B# and B# -/-> A# ) Suppose relationship R has an attribute called W. Then, we have: A#B# --> W

Cont’

Intra FDs Pic# -->PicTitle, PicYear PicArtist -->ArtistCountry, ArtistType Museum# -->MuseumName, MuseumAddr

Inter FDs Pic# -->PicArtist, Museum#

Cont’ Thus, we can combine them based on their common LHS. Pic# -->PicTitle, PicYear, PicArtist, Museum# PicArtist -->ArtistCountry, ArtistType Museum# -->MuseumName, MuseumAddr