Conceptual Design Lecture - 2 Database Development.

Slides:



Advertisements
Similar presentations
Entity Relationship Diagrams
Advertisements

More Diagramming & Practice with Relationship Modeling
Database Design Lessons 2 & 3 Database Models, Entities, Relationships.
Chapter 2.1 V3.1 Napier University Dr Gordon Russell
Data Modeling and the Entity-Relationship Model Chapter Four DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 3 rd Edition.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 4 Entity Relationship (ER) Modeling.
Data Modeling and Entity- Relationship Model II. IST2102 I want a database to maintain departments in my company. Store information about my employees,
Data Modeling using the Entity-Relationship (ER) Model
Entity-Relation Modeling Hun Myoung Park, Ph.D., Public Management and Policy Analysis Program Graduate School of International Relations International.
ISMT221 Information Systems Analysis and Design Entity-Relationship Diagram Lab 4 Tony Tam.
System Analysis - Data Modeling
Conceptual Design Lecture 3 Database Development.
Database design concepts info1408 Lecture 8 Worked example of E:R Modelling.
Database design concepts info1408 Lecture 8 Worked example of E:R Modelling.
Data Modeling Entity - Relationship Models. Models Used to represent unstructured problems A model is a representation of reality Logical models  show.
Information Resources Management January 30, 2001.
Fundamentals, Design, and Implementation, 9/e COS 346 Day 2.
Chapter 4 Entity Relationship (ER) Modeling
Database Systems: Design, Implementation, and Management Tenth Edition
CSCI 242 Relational Data Modeling Copyright 2011, David C. Roberts, all rights reserved.
Entity Relationship Modeling Objectives: To illustrate how relationships between entities are defined and refined. To know how relationships are incorporated.
Data Modeling Using the Entity-Relationship Model
Ch5: ER Diagrams - Part 2 Much of the material presented in these slides was developed by Dr. Ramon Lawrence at the University of Iowa.
Data Modeling and the Entity-Relationship Model Chapter Four DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
© 2007 by Prentice Hall (Hoffer, Prescott & McFadden) 1 Entity Relationship Diagrams (ERDs)
IT 244 Database Management System Data Modeling 1 Ref: A First Course in Database System Jeffrey D Ullman & Jennifer Widom.
Structured Analysis Techniques
Dr. Mohamed Osman Hegaz1 Conceptual data base design: The conceptual models: The Entity Relationship Model.
Chapter 5 Entity Relationship (ER) Modelling
Conceptual Design Revision Database Development. Basic constructs of the Entity Relationship Model Entity  Representation of an Entity on an ER diagram.
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
Entity Relationship Diagram (ERD) 22 February 2011.
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/1 Copyright © 2004 Please……. No Food Or Drink in the class.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 3 Data Modeling Using the Entity- Relationship (ER) Model.
Database Design Principles – Lecture 3
© 2011 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 2: Modeling Data in the Organization.
1 Entity-Relationship Diagram. 2 Components of ERD: –Entity –Relationship –Cardinality –Attributes.
C-1 Management Information Systems for the Information Age Copyright 2004 The McGraw-Hill Companies, Inc. All rights reserved Extended Learning Module.
Initial Design of Entity Types for the COMPANY Database Schema Based on the requirements, we can identify four initial entity types in the COMPANY database:
Data Modeling Using the Entity-Relationship (ER) Model.
IT 21103/41103 System Analysis & Design. Chapter 04 Data Modeling.
Description and exemplification of entity-relationship modelling.
Chapter 3 Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2008.
Database Systems: Design, Implementation, and Management Ninth Edition Chapter 4 Entity Relationship (ER) Modeling.
Database Design – Lecture 4 Conceptual Data Modeling.
Domain Classes – Part 1.  Analyze Requirements as per Use Case Model  Domain Model (Conceptual Class Diagram)  Interaction (Sequence) Diagrams  System.
INTRODUCTION TO DATABASE DESIGN. Definitions Database Models: Conceptual, Logical, Physical Conceptual: “big picture” overview of data and relationships.
Lecture 03 Entity-Relationship Diagram. Chapter Outline.
Dr Gordon Russell, Napier University Data Analysis 1 - V2.0 1 Data Analysis 1 Unit 2.1.
Data Modeling Using the Entity- Relationship (ER) Model.
Entity Relationship Diagram (ERD). Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship.
Copyright © 2016 Pearson Education, Inc. Modern Database Management 12 th Edition Jeff Hoffer, Ramesh Venkataraman, Heikki Topi CHAPTER 2: MODELING DATA.
Department of Mathematics Computer and Information Science1 CS 351: Database Management Systems Christopher I. G. Lanclos Chapter 4.
ERD :: 19 / 1 / Entity-Relationship (ER) Modeling. ER Modeling is a top-down approach to database design. Entity Relationship (ER) Diagram –A.
ENTITY RELATIONSHIP DIAGRAM. Objectives Define terms related to entity relationship modeling, including entity, entity instances, attribute, relationship.
Rationale Databases are an integral part of an organization. Aspiring Database Developers should be able to efficiently design and implement databases.
Database Designsemester Slide 1 Database Design Lecture 7 Entity-relationship modeling Text , 7.1.
ER Diagrams ● Many different notations are available ● From wikipedia:wikipedia: Entity-relationship modelwikipedia: Entity-relationship model ● How do.
Entity Relationship Modeling
Databases (CS507) CHAPTER 7.
Data Modeling and the Entity-Relationship Model
CSIS 115 Database Design and Applications for Business
Requirements Become the E-R Data Model
Database Design – Lecture 4
ERD :: 19 / 1 / Entity-Relationship (ER) Modeling. ER Modeling is a top-down approach to database design. Entity Relationship (ER) Diagram –A.
Entity-Relationship Modeling "Extended"
Data Modeling and the Entity-Relationship Model
Entity-Relationship Modeling "Extended"
Entity-Relationship Modeling "Extended"
Data Modeling and the Entity-Relationship Model
Presentation transcript:

Conceptual Design Lecture - 2 Database Development

At the end of this lecture  You will be able to identify and represent on a diagram: –a strong entity –a weak entity –three association types –a recursive relationship –a unique identifier –an optional relationship –a required relationship from a given description.

Basic constructs of the Entity Relationship Model Entity  Representation of an Entity on an ER diagram is: –a box with square corners –labelled with the entity name. Note – the entity name is always singular Student

Basic constructs of the Entity Relationship Model Entity types  An Entity may be classified as either a weak entity or a strong entity

Basic constructs of the Entity Relationship Model Weak Entity  Representation of a Weak Entity on an ER diagram is: –a box with rounded corners –labelled with the entity name (singular) NextOfKin

Basic constructs of the Entity Relationship Model Strong Entity  By default an entity which is not a weak entity is a strong entity. Student

The ER Model Description An order may only be placed with a supplier who has been validated by the company.  Two possible entities from the description are –Order –Supplier

The ER Model  What kind of entity is an Order? –Weak entity? –Strong entity?  What kind of entity is an Supplier? –Weak entity? –Strong entity?

The ER Model  What kind of entity is an Order? –A Weak entity!  What kind of entity is an Supplier? –Strong entity! Supplier Order

ER Model Relationship Types Relationships we will use.  One to One  One to Many  Many to Many  Inheritance

ER Model Relationship Types One to One –An employee is allocated a single parking space, a parking space belongs to only one employee. 1:1 Employee ParkingSpace

ER Model Relationship Types One to Many –A department has many employees assigned to it, each employee is assigned to only one department. 1:M Department Employee

ER Model Relationship Types Many to Many –An employee attends many staff development sessions, each staff development session is attended by many employees. N:M StaffDevSess Employee

ER Model Relationship Types Many to Many –An employee attends many staff development sessions, each staff development session is attended by many employees. N:M StaffDevSess Employee

ER Model Relationship Types Inheritance –A technician is a kind of employee about whom we wish to record, in addition to his other attributes, his highest technical qualification. Technician Employee

ER Model Relationship Existence In Object Oriented Software Development you could show if an association was optional or required as follows.  Optional related class instance was shown as 0..* –An association between an instance of one class with Zero or more related instances from another class

ER Model Relationship Existence  Required related class instance was shown as 1..* –An association between a minimum of one or more related class instances.  In ER diagrams you do not use the same notation

ER Model Relationship Existence  In the ER model optional association existence is shown as.  An employee may be a member of one of the works football teams. 1:M FootballTeam Employee

ER Model Relationship Existence  In the ER model mandatory association existence is shown as.  An employee must be a member of one of the unions recognised by the company. 1:M Union Employee

ER Model Relationship Recursive relationship.  An employee may also be a manager. A number of employees are managed by a single manager Employee 1:M Employee Manager

Attributes What is an attribute?  An attribute is a piece of information about the object or event that we wish to store in our database.  It can be said to describe the object.  An example of some possible attributes for Employee could be EmployeeID, EmpFirstName, EmpSurname

Attributes

ER Model Representation of Attributes  Only attributes which uniquely identify an entity will be represented on your ER diagram.  A key attribute may be represented as follows Employee EmployeeID

ER Model Representation of Attributes  What about other attributes? –These will be put on a diagram script.  More about this next week.

ER Diagram Summary  How to represent –an Entity. –an Association –Inheritance –Recursive Relationship –Key Field