IS6125 Database Analysis and Design Lecture 3: Conceptual Data Modelling 1: The Foundational Concepts Rob Gleasure

Slides:



Advertisements
Similar presentations
Chapter # 4 BIS Database Systems
Advertisements

Entity-Relationship (ER) Modeling
Entity Relationship (ER) Modeling
Entity Relationship (ER) Modeling
4 1 Chapter 4 Entity Relationship (ER) Modeling Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 4 Entity Relationship (ER) Modeling.
Chapter 4 Entity Relationship (E-R) Modeling
Entity Relationship (ER) Modeling
Systems Development Life Cycle
Modeling the Data: Conceptual and Logical Data Modeling
Database Design & Mapping
Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 1 Data Models: Degrees of Data Abstraction l Modified ANSI/SPARC Framework.
Chapter 4 Entity Relationship (ER) Modeling
Database Systems: Design, Implementation, and Management Tenth Edition
Chapter 4 Entity Relationship (E-R) Modeling
Class Number – CS 304 Class Name - DBMS Instructor – Sanjay Madria Instructor – Sanjay Madria Lesson Title – ER Model.
Chapter 3 Data Modeling Using the Entity- Relationship (ER) Model Dr. Bernard Chen Ph.D. University of Central Arkansas.
Data Modeling Using the Entity-Relationship Model
Entity-Relationship modeling Transparencies
Data Modeling Using the Entity-Relationship Model
© 2007 by Prentice Hall (Hoffer, Prescott & McFadden) 1 Entity Relationship Diagrams (ERDs)
DeSiamorewww.desiamore.com/ifm1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
Chapter 3: Modeling Data in the Organization
Dr. Mohamed Osman Hegaz1 Conceptual data base design: The conceptual models: The Entity Relationship Model.
Chapter 7 Data Modeling with Entity Relationship Diagrams Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition.
Database. Basic Definitions Database: A collection of related data. Database Management System (DBMS): A software package/ system to facilitate the creation.
Chapter 5 Entity Relationship (ER) Modelling
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management Dave Salisbury ( )
Conceptual Data Modeling, Entity Relationship Diagrams
4 1 Chapter 4 Entity Relationship (ER) Modeling Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
DATABASEMODELSDATABASEMODELS  A database model ◦ defines the logical design of data. ◦ Describes the relationships between different parts of data.
Database Design Principles – Lecture 3
© 2011 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 2: Modeling Data in the Organization.
© Pearson Education Limited, Chapter 7 Entity-Relationship modeling Transparencies.
Entity-Relationship Modeling Based on Chapter 12.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 4 Entity Relationship (ER) Modeling.
Chapter 4 Entity Relationship (ER) Modeling.  ER model forms the basis of an ER diagram  ERD represents conceptual database as viewed by end user 
Chapter 12 Entity-Relationship Modeling Pearson Education © 2009.
1 Entity-Relationship Diagram. 2 Components of ERD: –Entity –Relationship –Cardinality –Attributes.
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:
Database Design – Lecture 5 Conceptual Data Modeling – adding attributes.
DeSiamorePowered by DeSiaMore1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
3 & 4 1 Chapters 3 and 4 Drawing ERDs October 16, 2006 Week 3.
Msigwaemhttp//:msigwaem.ueuo.com/1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
Data modeling using the entity-relationship model Chapter 3 Objectives How entities, tuples, attributes and relationships among entities are represented.
Database Systems: Design, Implementation, and Management Ninth Edition Chapter 4 Entity Relationship (ER) Modeling.
AL-MAAREFA COLLEGE FOR SCIENCE AND TECHNOLOGY INFO 232: DATABASE SYSTEMS CHAPTER 4 ENTITY RELATIONSHIP (ER) MODELING Instructor Ms. Arwa Binsaleh 1.
Database Design – Lecture 4 Conceptual Data Modeling.
IS6125 Database Analysis and Design Lecture 4: Conceptual Data Modelling 2: ER Modelling and Beyond the Presentation Layer Rob Gleasure
IS6145 Database Analysis and Design Lecture 4: Fine-Granular Design-Specific ER Modelling Rob Gleasure
DatabaseIM ISU1 Fundamentals of Database Systems Chapter 3 Data Modeling Using Entity-Relationship Model.
Data Modeling Using the Entity-Relationship (ER) Data Model.
Chapter 3: Modeling Data in the Organization. Business Rules Statements that define or constrain some aspect of the business Assert business structure.
Entity Relationship Diagram (ERD). Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 3: Modeling Data in the Organization Modern Database Management 9 th Edition Jeffrey.
McGraw-Hill/Irwin Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 6 Modeling the Data: Conceptual and Logical Data Modeling.
Department of Mathematics Computer and Information Science1 CS 351: Database Management Systems Christopher I. G. Lanclos Chapter 4.
Rationale Databases are an integral part of an organization. Aspiring Database Developers should be able to efficiently design and implement databases.
IS6125 Database Analysis and Design Lecture 5: Conceptual Data Modelling 2: ER Modelling and Beyond the Presentation Layer Rob Gleasure
IS6125 Database Analysis and Design Lecture 4: Conceptual Data Modelling 1: The Foundational Concepts Rob Gleasure
Tables and Their Characteristics
Database Design – Lecture 4
Chapter 4 Entity Relationship (ER) Modeling
Database Systems: Design, Implementation, and Management Tenth Edition
IS6125/IS6145 Database Analysis and Design Lecture 2: Conceptual Data Modelling 1: The Foundational Concepts Rob Gleasure
IS6145 Database Analysis and Design Lecture 3: Conceptual Data Modelling 2: ER Modelling and Beyond the Presentation Layer Rob Gleasure
Review of Week 1 Database DBMS File systems vs. database systems
Chapter 4 Entity Relationship (ER) Modeling
Entity Relationship (ER) Modeling
Presentation transcript:

IS6125 Database Analysis and Design Lecture 3: Conceptual Data Modelling 1: The Foundational Concepts Rob Gleasure

IS6125 Today’s session  A note on the labs  Summary of last week  A Little History  What is Conceptual Modelling?  The Essential Components of Conceptual Modelling  A Conceptual Modelling Framework  Entity-relationship Modelling Primitives  Foundations of the entity-relationship modelling grammar  An exercise

A note on the labs We are going to spend some time on Entity Relationship Diagrams (ERDs), a form of modelling and visualising data There are several different notations for ERDs, by far the most popular of which are Chen’s notation and SSADM notation  Chen’s notation lends itself towards more detail  SSADM notation is popular among many popular design methodologies The basic concepts are the same, so we’re going to focus on Chen’s in lectures and SSADM in labs. This means  You are ‘multilingual’ in ERD terms  You can appreciate the differences

Last week’s session Key takeaways  To make sense of large amounts of information, we need to apply some repeatable structure  This structure can be applied during data input, or during retrieval  As this structuring becomes more and more sophisticated, we can algorithms and structured queries to automate incredibly complex tasks  The information that we get back still requires some interpretation Quantitative Data Qualitative Data StructuringInterpretation

A Little History Early 1960s  A Hierarchical Data Model dominated data storage  Data was modelled only as it was stored in database, i.e. there was no purely conceptual motive  Pointers were used in programming to move from one record to another Dept. Course Student

A Little History Early 1970s  The Network Data Model emerged as a way of graphing data  Data was still modelled only as it was stored in database and pointers were still used to navigate records. However the need for a hierarchical structure disappeared, meaning more elaborate queries were possible Dept. Course Student

A Little History Post 1970s  The Relational Data Model is used (c/o Edgar Codd)  Data was modelled as tables with rows and columns  No need for pointers, now related items are identified through common data characteristics (columns) Student Stu_IDDept_IDYearCredits ………… ………… Department Dept_IDBldgHead ……… ………

A Little History Post 1976  The Entity-Relationship Modelling Grammar is used (c/o Peter Chen)  Focuses on conceptual modelling, rather than seeking to transition straight from requirements to a database structure Image from Data Modeling and Database Design, By Narayan Umanath, Richard Scamell

What is Conceptual Modelling? Before designing a database, we must understand the meaning of the data we wish to store This allows  A cohesive high-level design to be maintained  More front-end aware database design  More business-strategy aware database design  Technology-independent database design

The Essential Components of Conceptual Modelling? Once we have front-end user requirements and business strategy inputs, conceptual modelling can be thought of in terms of 3 things 1. The context for the model (what it’s for) 2. The grammar for the model (what it’s made from) 3. The method that describes how to use the grammar (what it does)

A Conceptual Modelling Framework We’ll be working off the entity-relationship (ER) modelling framework Why?  It works  It’s popular  It’s interesting

Entity-relationship Modelling Primitives The basic essence of the ER model is the ‘entity’ Any objects* about which we want to store information must be represented by some entity type Specific entities of that type are referred to as entity instances The information we store for an entity type is represented by attributes Individual pieces of data for an entity instance are called values

Entity-relationship Modelling Primitives Entity types can also have a generalised entity class  The entity type jumper may have a parent entity class clothes Entity types can also be connected by relationships  A jumper may have a relationship with some manufacturer The ER conceptual modelling framework is made up of these concepts, particularly entities, attributes, and relationships

ER Modelling Primitives Attributes are depicted with circles connected to an entity, the format of which communicates some of that attribute’s basic characteristics AttributeCharacteristicsDepiction NameWritten beside circle TypeNumeric, alphabetic, etc.- DomainThe range of possible values ClassificationAtomic or compositeComposite are connected to other attributes CategorySingle or multi-valuedMulti-valued has two circles SourceStored or derivedDerived are dotted lines OptionalityOptional or mandatoryOptional are empty circles RoleKey or non-keyKey is underlined

ER Modelling Primitives Image from Data Modeling and Database Design, By Narayan Umanath, Richard Scamell

ER Modelling Primitives Relationships between entities can vary in several ways  The degree of a relationship is the number of entities involved a relationship A binary relationship A ternary relationship Image from Data Modeling and Database Design, By Narayan Umanath, Richard Scamell

ER Modelling Primitives Relationships between entities can vary in several ways  The cardinality constraint of a relationship is the maximum number of each of the entities involved a relationship  Cardinalities can be 1-to-1 (often written 1:1) many-to-1 (often written n:1) Many-to-many (often written m:n) Building Ground-floor entrance Is entered through 1 n

ER Modelling Primitives Relationships between entities can vary in several ways  The participation constraint of a relationship specifies whether or not, in order to exist, an entity must be related to another entity type through this relationship  Participation can be Optional/0+ (often written with a 0) Mandatory/1+ (often written with a |) Building Ground-floor entrance Is entered through

Strong and Weak Entity Types Strong entity types and weak entity types  Not all entries in a database need to have unique identifies, e.g. a library may have multiple copies of the exact same book  These types of entities are called ‘weak’ entities This is communicated by a double line around the entity and the relationship upon which it depends BuildingHelp desk Has 1 n

Strong and Weak Entity Types Image from Data Modeling and Database Design, By Narayan Umanath, Richard Scamell Note that a weak entity can also have normal relationships Partial key (means it can be combined with unique identifier from strong entity to identify weak entity)

Exercise: Draw the following relationships between entities A car has one registered owner but an owner may own many cars A musician has many fans and individuals may be fans of many different musicians A company is composed of many departments. Each department has several employees, but each employee works for only one department. Each department is managed by one employee, and each manager can manage one department at a time. A corporation may operate many factories, each of which is associated with a particular region. A region can house many factories. A factory employs many employees, but each of these employees is employed by only one factory. An employee on a graduate programme must have one degree but may have many. A graduate programme can exist before it has any employees

Exercise: Draw the following attributes A student has a unique student number, an address, a nationality, a picture, and at least one previous academic qualification recorded. Students may or may not also have provided dietary preferences. A module has a unique course code, one or more lecturers, and may or may not be active on Blackboard. The department responsible for the module is also available based on the course code. How might these relate to one another?