Resolving Many-to-Many Relationships. 2 home back first prev next last What Will I Learn? In this lesson, you will learn to: –Identify attributes which.

Slides:



Advertisements
Similar presentations
Banking Business Scenario
Advertisements

ER Model For a college DB
ERD diagram Data Design - Mr. Ahmad Al-Ghoul
The Relational Database Model – some relations you might want to avoid!!!
Concepts of Database Management Sixth Edition
Extended Learning Module C Designing Databases and Entity-Relationship Diagramming McGraw-Hill/Irwin Copyright © 2010 by the McGraw-Hill Companies, Inc.
Data fundamentals file processing fundamentals entity-relationship diagrams the cornucopia case portfolio project chapter4 Systems Analysis and Design.
Entity Relationship Diagrams Don Archer. Entity Relationship Diagram  ERDs – depicts data in terms of the entities and relationships described by the.
History of the Database. 2 home back first prev next last What Will I Learn? In this lesson, you will learn to: –Describe the evolution of the database.
System Analysis and Design
Concepts of Database Management Seventh Edition
Database Design Sections 4 & 5 Subtype, Supertype, Mutually exclusive, non-transferability, transferable, 1:1, 1:M, M:M, Redundant, Intersection entity,
Data fundamentals file processing fundamentals entity-relationship diagrams the cornucopia case portfolio project Systems Analysis and Design for the Small.
What is an Entity What is an Entity Relationship Diagram? Different types of relationships.
Chapter 5 UNDERSTANDING AND DESIGNING ACCOUNTING DATA.
Oracle Academy -Week 1-.
DATA MODELING AND DATABASE DESIGN DATA MODELING AND DATABASE DESIGN Part 1.
CSC271 Database Systems Lecture # 6. Summary: Previous Lecture  Relational model terminology  Mathematical relations  Database relations  Properties.
Database Design Concepts
Database Design Sections 4 & 5 Subtype, Supertype, Mutually exclusive, non-transferability, transferable, 1:1, 1:M, M:M, Redundant, Intersection entity,
Conceptual Design Lecture - 2 Database Development.
Database Design Sections 6 & 7 Second Normal Form (2NF), Unique Identifiers (UID), Third Normal Form (3NF), Arcs, Hierarchies and Recursive relationships.
G057 - Lecture 02 Introduction To Database System Concepts Mr C Johnston ICT Teacher
Artificial, Composite and Secondary UIDs
Copyright Ó Oracle Corporation, All rights reserved. Normalization Use the student note section below for further explanation of the slide content.Use.
Database Design Using Entity-Relationship Models Transformation of Entity-Relationship Models into Relational Database Design Trees, Networks, and Bills.
Concepts of Database Management Sixth Edition Chapter 6 Database Design 2: Design Method.
1 Entity-Relationship Diagram. 2 Components of ERD: –Entity –Relationship –Cardinality –Attributes.
Next Back A-1 Management Information Systems for the Information Age Second Canadian Edition Copyright 2004 The McGraw-Hill Companies, Inc. All rights.
Overview of Database Development Data Modeling and Relational Database Design.
C-1 Management Information Systems for the Information Age Copyright 2004 The McGraw-Hill Companies, Inc. All rights reserved Extended Learning Module.
Chapter 9: Logical Database Design and the Relational Model (ERD Mapping)
Database Design Sections 11 Database relationship, Integrity, keys, mapping conceptual model to logical/physical model Previous Section 12 – DDLesson11Fa12.ppt.
Entity-Relationship (E-R) Diagrams
An Entity Relationship (ER) Diagram is a graphic that shows the interrelationship between entities in a database.
Normalization Exercise. First Normal Form Second Normal Form.
Description and exemplification of entity-relationship modelling.
Btec National - Advanced Databases 1 Advanced Databases Entity Relationship Diagrams.
Hazırlayan MODELLING THE DATA STRUCTURE Entity Modelling & Entity Relationship Diagrams Yard.Doç.Dr. Zehra KAMIŞLI ÖZTÜRK.
Database Design. The process of developing database structures from user requirements for data a structured methodology Structured Methodology - a number.
Database Design Sections 11 & 12 drawing conventions, generic model, integrity, keys, mapping conceptual model to logical/physical model.
ENTITY RELATIONSHIP DIAGRAM ENTITY RELATIONSHIP DIAGRAM IS A SPECIALIZED GRAPHIC THAT ILLUSTRATES THE INTERRELATIONSHIPS BETWEEN ENTITIES IN A DATABASE.
Relational Theory and Design
Generic Modeling. 2 home back first prev next last What Will I Learn? In this lesson, you will learn to: –Define generic modeling –Evaluate and describe.
WXGE 6101 DATABASE CONCEPTS & IMPLEMENTATIONS. Lesson Overview The Relational Model Terminology of relational model. Properties of database relations.
Modelling Change: Price. 2 home back first prev next last What Will I Learn? In this lesson, you will learn to: –Solve the business requirement of tracking.
Subtype Mapping. 2 home back first prev next last What Will I Learn? In this lesson, you will learn to: –State and apply the table, column, identifiers,
Drawing Conventions for Readability. 2 home back first prev next last What Will I Learn? In this lesson, you will learn to: –Apply the Oracle drawing.
Database Design – Lecture 6 Moving to a Logical Model.
Relationship Transferability. 2 home back first prev next last What Will I Learn? In this lesson, you will learn to: –Understand the difference between.
Supertypes and Subtypes
Understand Relational Database Management Systems Software Development Fundamentals LESSON 6.1.
Database Design Sections 8 & 12 Modeling Historical Data, conditional nontranferability, time-related constraints.
Btec National - IT SYSTEMS ANALYSIS AND DESIGN 1 IT Systems Analysis and Design Entity Relationship Diagrams.
EntityRelationshipDiagrams. Entity Relationship Models The E-R (entity-relationship) data model views the real world as a set of basic objects (entities)
subtype 1.inherits all attributes of the supertype 2.inherits all relationships of the supertype 3. usually has its own attributes or.
Database Design. Database Design Process Data Model Requirements Application 1 Database Requirements Application 2 Requirements Application 4 Requirements.
Microsoft Access 2010 Chapter 11 Database Design.
Mapping ER to Relational Model Each strong entity set becomes a table. Each weak entity set also becomes a table by adding primary key of owner entity.
Teanna Clarke 6aQ What is a Entity-Relationship Diagram?  An Entity-Relationship Diagram (ERD) is a tool that graphically shows the connections among.
Microsoft Access CS 110 Fall Entity Relationship Model Entities Entities Principal data object about which information is to be collectedPrincipal.
5 1 Chapter 5 Normalization of Database Tables Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
Chapter 6 Many-to Many Relationship. Agenda AutoNumber Many-to-many relationship Cascaded updating and deleting Auto Lookup Parameter query Total query.
1 Database Design Sections 6 & 7 First Normal Form (1NF), Second Normal Form (2NF), Unique Identifiers (UID), Third Normal Form (3NF), Arcs, Hierarchies.
DATA MODELING AND DATABASE DESIGN
ER Models ISSUES and Examples CS263 Lecture 9
Play Writing & Directing
DATA MODELING AND DATABASE DESIGN
Presentation transcript:

Resolving Many-to-Many Relationships

2 home back first prev next last What Will I Learn? In this lesson, you will learn to: –Identify attributes which belong to many-to- many relationships –Demonstrate the steps to resolve a many-to- many relationship using an intersection entity –Identify the UID of an intersection entity and represent it in the entity relationship diagram

3 home back first prev next last Why Learn It? This lesson will help you complete your model -- you may need to create new entities or new relationships based on the business needs. It will also help you define the scope of your data model -- you only model what is of importance to the business.

4 home back first prev next last Relationship Hiding an Attribute In the DJ business, each PARTNER may be assigned to work on one or more EVENTs. Each EVENT may be a job for one or more PARTNERs. When an EVENT PLANNER, a DJ, or a PROJECT MANAGER works on an EVENT, we want them to record the status of the job. Which entity would the attribute "status" belong to?

5 home back first prev next last Resolution of a M:M Relationship A third entity is needed to resolve the M:M relationship. This is called an "intersection“ ent ity.

6 home back first prev next last Intersection Entity An intersection entity – JOB ASSIGNMENT – has been added, including the status attribute. The original M:M relationship has become two 1:M relationships. What would be the UID of the intersection entity ?

7 home back first prev next last Barred Relationships The unique identifier (UID) of the intersection entity often comes from the originating relationships and is represented by the bars. In this case, the relationships from the originating entities to the intersection entity are called "barred" relationships.

8 home back first prev next last M:M Resolution Example: TV Shows Each TV show may be watched by one or more persons. Each person may watch one or more TV shows.

9 home back first prev next last M:M Resolution Example: Cleaning Services Each company may provide one or more cleaning services. Each cleaning service may be provided by one or more companies.

10 home back first prev next last Terminology Key terms used in this lesson include: –Intersection entity –Barred relationship

11 home back first prev next last Summary In this lesson, you have learned how to: –Identify attributes which belong to many-to- many relationships –Demonstrate the steps to resolve a many-to- many relationship using an intersection entity –Identify the UID of an intersection entity and represent it in the entity relationship diagram