Implementation of Entity Relationships

Slides:



Advertisements
Similar presentations
The transformation of an ER or EER model into a relational model
Advertisements

Transformation of an ER Model into a Relational Database Schema Translating to Software.
Transform an ER Model into a Relational Database Schema
1 Assignment 4 Map entities with relationships to relational schemas. Use DBDL to describe the table schemas.
Weak Entity Sets An entity set that does not have a primary key is referred to as a weak entity set. The existence of a weak entity set depends on the.
Mapping an ERD to a Relational Database To map an ERD to a relational database, five rules are defined to govern how tables are constructed. 1)Rule for.
ISMT221 Information Systems Analysis and Design Entity-Relationship Diagram Lab 4 Tony Tam.
Motivation for IDEF1X Simplicity Common Standard Useful when relational model is target Air Force 1985 or thereabouts.
The Relational Model Codd (1970): based on set theory Relational model: represents the database as a collection of relations (a table of values --> file)
Using ER/Studio.
Chapter 5 1 © Prentice Hall, 2002 Chapter 5: Transforming EER Diagrams into Relations Mapping Regular Entities to Relations 1. Simple attributes: E-R attributes.
Database Systems: Design, Implementation, and Management Tenth Edition Chapter 5 Advanced Data Modeling.
DATA MODELING AND DATABASE DESIGN
1 Relational Database Development Alison Taylder Consultant ITC-ILO, Turin 25 th November 2004.
Registered Nurse (RN) Alex Foust. About An RN can give medication, give shots, write notes, talk to patients, prepare for procedures, monitor patients.
© Relational Databases. © Entities Data is stored in tables. Each table is concerned with one entity An entity is a.
Patient Description Older people over 60’s who are terminally ill and have no cure for their illness. They usually have less than 6 months to live. Hospice.
CS 370 Database Systems Lecture 9 The Relational model.
3 & 4 1 Chapters 3 and 4 Drawing ERDs October 16, 2006 Week 3.
Chapter 9: Logical Database Design and the Relational Model (ERD Mapping)
Handling Many to Many Relationships. 2 Handling Many:Many Relationships Aims: To explain why M:M relationships cannot be implemented in relational database.
3 & 4 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel Keys Consists of one or more attributes that determine other.
Jozef Kuper.  Describe a Database  Entities  Atributes  Relationships.
ERD Narrative (p158 Lab Manual) With Additional Notes!!
Tutorial 2 Data Modelling. 3 Terminology & Notation(1) An entity is an object about which the system needs to hold information –Customer, Student, Course.
Database Design Slide 1 Database Design Lecture 7 part 2 Mapping ERD to Tables.
Howard Paul. Sequential Access Index Files and Data File Random Access.
Transformation of an ER Model into a Relational Database Schema Translating to Software.
Nursing homework help BEST ASSIGNMENT.
Data Modeling and the Entity-Relationship Model
GP Trainee 18 (4.1%) GP 65 (14.7%) Foundation Doctor 30 (6.8%)
Revised: 2 April 2004 Fred Swartz
Chapter 4 Logical Database Design and the Relational Model
Chapter 4: Logical Database Design and the Relational Model
Chapter 4: Part B Logical Database Design and the Relational Model
Tables and Their Characteristics
Database Design – Lecture 4
Primary Longman Elect 6A Chapter 2 … need to be … … so that …
Assignment 4 Map entities with relationships to relational schemas.
Developing Data Models – Conversion Rules
OO models with relational databases
Figure Specialization Hierarchy
Generalization.
CS 3630 Database Design and Implementation
Hospital DB Requirements
Order Database – ER Diagram
מודל הנתונים.
בסיסי נתונים - מצגת ההרצאה - 1.
Session 2 Welcome: The seventh learning sequence
CHAPTER 4: LOGICAL DATABASE DESIGN AND THE RELATIONAL MODEL
Database Systems Instructor Name: Lecture-11.
E-R DIAGRAMS TO RELATIONAL SCHEMA
Database Processing: David M. Kroenke’s Chapter Six:
Data Analysis 4 Unit 2.4 Dr Gordon Russell, Napier University
Database Systems Instructor Name: Lecture-10.
DATABASE SYSTEM.
Review of Week 1 Database DBMS File systems vs. database systems
Database Design and Development
Guide to Modeling Keys to E-R diagrams.
Mapping an ERD to a Relational Database
Workshop Exercise (Week 6)
Guide to Modeling Keys to E-R diagrams.
G061 - Data Dictionary.
Mapping an ERD to a Relational Database
Workshop Exercise (Week 6)
BTEC ICT – Unit 18 With Mr Griffiths.
Conceptual Data Modeling
Database 2.
Chapter 3 The Relational Model
Neurologist List
Presentation transcript:

Implementation of Entity Relationships 1-1 Relationship (both mandatory) 1 table required – attribute of main table Eg. Doctor has one specialty 2 tables required – foreign key in table Eg. Doctor has one assigned nurse Implement in Access! Lab 4

Implementation of Entity Relationships 1-1 Relationship (one mandatory) 2 tables required Primary Key of Mandatory as Foreign Key of Optional Eg. Nurse / Office (1 nurse in an office) 1-1 Relationship (both optional) Primary Key “Strong” Entity as Foreign Key FK can be null Eg. Patient has disease Implement in Access! Lab 4

Implementation of Entity Relationships 1-M Relationship (both mandatory) 2 tables required Primary Key of 1 as Foreign Key of M Eg. Doctor / Patient (1 doctor has many patients –no vice/versa) 1-M Relationship (1 mandatory M optional) Eg. Doctor / Equipment Implement in Access! Lab 4

Implementation of Entity Relationships 1-M Relationship (1 optional M mandatory) 2 tables required Primary Key of 1 as Foreign Key of M Eg. Hospital Fire Marshall / Doctors 1-M Relationship (Both Optional) FK can be null Eg. Hospitals / Equipment Distributors Implement in Access! Lab 4

Implementation of Entity Relationships M-N Relationships 3 tables required 2 tables contain primary key and attributes of entities 1 table contains primary key of 2 entities as foreign keys and other attributes Eg. Patient / Medication Lab 4