Entity-Relationship Diagram

Slides:



Advertisements
Similar presentations
ER Model For a college DB
Advertisements

Text-Book Chapters (7 and 8) Entity-Relationship Model
Databases Revision.
Entity-Relationship Model and Diagrams (continued)
Ch5: Software Specification. 1 Descriptive specifications  Describe desired properties of system  Three types:
Introduction to Database. File Formats Comma delimited file –"s1","peter",3 –"s2","paul",2.5 –"s3","mary",3.5 –Demo: Excel – Data/Import Extended Markup.
Entity Relationship Diagrams Don Archer. Entity Relationship Diagram  ERDs – depicts data in terms of the entities and relationships described by the.
CS34311 The Entity- Relationship Model. CS34312 Database Design Stages Application Requirements Conceptual Design Logical Design Physical Design Conceptual.
Slides adapted from A. Silberschatz et al. Database System Concepts, 5th Ed. Entity-Relationship Model Database Management Systems I Alex Coman, Winter.
First class agenda Introductions Course overview Password protected items will use inls258 / WeR258! as the userid/password.
Entity PrimaryKey Attribute relationship Cardinality: zero to many Cardinality: one and only one Cardinality: one to many Explanation Entity Relationship.
1 Data Modelling Which data to include in the database.
Chapter 2: Entity-Relationship Model (Continued)
Chapter 3 Data Modeling Fundamentals of Database Management Systems by
Database Management COP4540, SCS, FIU Database Modeling Using the Entity-Relationship Model (Chapter 3)
Slide 1 Chapter 05 – Part 1 Data Modeling with the Entity-Relationship Model.
Introduction to Databases
What is an Entity What is an Entity Relationship Diagram? Different types of relationships.
 An entity-relationship (ER) diagram is a specialized graphic that illustrates the interrelationships between entities in a database.  An Entity Relationship.
CS 405G Introduction to Database Systems
Entity-Relationship Diagrams
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 Design Concepts
Chapter 17 Database Design Using the REA Data Model Copyright © 2012 Pearson Education 17-1.
Converting ER model Into Relational Table
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
1 Chapter 1 Overview of Database Concepts. 2 Chapter Objectives Identify the purpose of a database management system (DBMS) Distinguish a field from a.
IS 325 Notes for Wednesday September 4, Syllabus Change I eliminated quizzes I increased the points allocated to homework assignments.
The REA Model. The REA model provides structure for developing an accounting database It helps to identify It helps to The REA Model.
Entity-Relationship Model Ch. 3
Principles of Database Design, Part II AIMS 2710 R. Nakatsu.
Copyright (c) 2014 Pearson Education, Inc. Introduction to Databases.
Fundamentals of Database Management Systems, 2nd ed
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
Database Management System
PLUG IT IN 3 Fundamentals of Relational Database Operations.
Databases. Not All Tables Are Created Equal Spreadsheets use tables to store data and formulas associated with that data The “meaning” of data is implicit.
© Pearson Education Limited, Chapter 7 Entity-Relationship modeling Transparencies.
Chapter 1Introduction to Oracle9i: SQL1 Chapter 1 Overview of Database Concepts.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall, modified by Dr. Lyn Mathis 5-1 David M. Kroenke’s, 10 th ed. Chapter.
1 E-R Model (II) Keys To identify records in a table Candidate Key Primary Key Alternate Key Composite Key.
IE 423 – Design of Decision Support Systems Data modeling and database development.
Chapter 9: Logical Database Design and the Relational Model (ERD Mapping)
CS 405G: Introduction to Database Systems Lecture 2 : Database Design I.
Chapter 2 : Entity-Relationship Model Entity Sets Relationship Sets Design Issues Mapping Constraints Keys E-R Diagram Extended E-R Features Design of.
Access Review. Access Access is a database application A database is a collection of records and files organized for a particular purpose Access supports.
An Entity Relationship (ER) Diagram is a graphic that shows the interrelationship between entities in a database.
Description and exemplification of entity-relationship modelling.
1 Data Modeling : ER Model…. Lecture Summary so for …. ER Model Entity, Attribute, Key Relationships Instance Diagram.
In this session, you will learn to: Map an ER diagram to a table Objectives.
ENTITY RELATIONSHIP DIAGRAM ENTITY RELATIONSHIP DIAGRAM IS A SPECIALIZED GRAPHIC THAT ILLUSTRATES THE INTERRELATIONSHIPS BETWEEN ENTITIES IN A DATABASE.
Relational Theory and Design
Chapter Two ( Database Design) Objectives Learn how to design a DBMS Introduction to Data Models Entity-Relationship Data Models.
Lecture 03 Entity-Relationship Diagram. Chapter Outline.
BSA206 Database Management Systems Lecture 2: Introduction to Oracle / Overview of Database Concepts.
1 ER Modeling BUAD/American University Mapping ER modeling to Relationships.
Entity-Relationship Diagram Presentation Gianna-lee Williams 6AQ Ms. Anderson.
Entity relationship diagram Name: Quian Crosby Form:6AQ Subject: Information Technology Teacher: Ms. D. Anderson.
The Entity-Relationship Model, P. I R. Nakatsu. Data Modeling A data model is the relatively simple representation, usually graphic, of the structure.
IS 312: Information Systems for Business Discussion Chapter 3.
CS34311 The Entity- Relationship Model Part III..
CSE 412/598 DATABASE MANAGEMENT COURSE NOTES 3. ENTITY-RELATIONSHIP CONCEPTUAL MODELING Department of Computer Science & Engineering Arizona State University.
Lecture 5 Entity Relationship Modeling
IE 423 – Design of Decision Support Systems Data modeling and database development.
©Silberschatz, Korth and Sudarshan7.1Database System Concepts - 6 th Edition Chapter 7: Entity-Relationship Model.
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 7: Entity-Relationship.
Teanna Clarke 6aQ What is a Entity-Relationship Diagram?  An Entity-Relationship Diagram (ERD) is a tool that graphically shows the connections among.
Data Modeling AND ER MODELS.
Chapter Two Database Design (ER Model) Objectives: ER model Type of relationships Role in a relation Concept of Weak entities.
Presentation transcript:

Entity-Relationship Diagram

Entity-Relationship Diagram (1/3) E-R Diagram Symbols Entity Set Relationship 1 N Attribute Functionality

Entity-Relationship Diagram (2/3) E-R Diagram Symbols (Cont’d) 1 Married-to (Monogamy) Men 1 Women One-to-one relationship 1 Advised-by Faculty N Students One-to-many relationship N Taken-by N Students Courses Many-to-many relationship

Entity-Relationship Diagram (3/3) Example F# S# Advised-by Faculty 1 N Students FName SName 1 N Taught-by Taken-by N N Courses C# CName

Composition by eliminating one-to-many relationship relations Relational Schema Universal Relation  decomposition Composition by eliminating one-to-many relationship relations Faculty (F#, FName) Students (S#, SName) Courses (C#, CName) Advised-by (F#, S#) Taken-by (S#, C#) Taught-by (F#, C#) Faculty (F#, FName) Students (S#, SName, F#) Courses (C#, CName, F#) Taken-by (S#, C#)

Queries List the all the names of the students who are taking the classes that Prof. Suh, Euiho is teaching List the all the names of the students who are advised by the professors who are teaching the classes taken by Hong, gildong

2. Revise the relational schema April Exam Questions Suppose that (1) Adviser-Advisee relationship’s functionality is many-to-many, and (2) A specific place is assigned when a professor meet his/her advisee. In another word, the meeting place depends upon the unique combination of a professor and a student. 1. Revise the E-R 2. Revise the relational schema 3. Relational algebraic expression for a query (The query will be given in the exam)