Case Studies: Data Modeling

Slides:



Advertisements
Similar presentations
Banking Business Scenario
Advertisements

ER Model For a college DB
ER Modeling Case Studies
Exercise 1 Consider the ER diagram below. Assume that an employee may work in up to two departments or may not be assigned to any department. Assume that.
ER Modeling Case Studies
ER Modeling Case Studies
ENTITY RELATIONSHIP MODELLING
Ch5: ER Diagrams - Part 1 Much of the material presented in these slides was developed by Dr. Ramon Lawrence at the University of Iowa.
Entity Relationship (ER) Modeling
Copyright © 2015 Pearson Education, Inc. Database Design Chapters 17 and
E/R Exercises – Part I April 16, 2017.
Revised by Ivor Perry Sept Introduction to Data Modelling.
Conceptual Design Lecture 3 Database Development.
Ch5: Software Specification. 1 Descriptive specifications  Describe desired properties of system  Three types:
Lecture 3 :Database Analysis and Design (II)
Database Design Concepts Info1408
The (min,max) notation (1,1) (0,1) (1,N) (1,1). SUMMARY OF ER-DIAGRAM NOTATION FOR ER SCHEMAS Meaning ENTITY TYPE WEAK ENTITY TYPE RELATIONSHIP TYPE IDENTIFYING.
1 Data Modelling Which data to include in the database.
Database Design Concepts Lecture 7 Introduction to E:R Modelling Identifying Entities.
Entity/Relationship Modelling
CS411 Database Systems Kazuhiro Minami
Entity Relationship Model Chapter 6. Basic Elements of E-R Model Entity Object of the real world that stores data. Eg. Customer, State, Project, Supplier,
COURSE REGISTRATION SYSTEM Case study IST2101. Case Study: Course Registration (1) IST2102 You are helping Penn State create a course registration system.
ER Modeling Case Studies
Entity-Relationship Diagrams
Data Modeling and Relational Database Design. Analyze and model the relationships between entities Draw an initial entity relationship diagram Read the.
Structured Analysis Techniques
COMM 226 Practical tips for creating entity relationship diagrams (ERDs) Chitu Okoli Associate Professor in Business Technology Management John Molson.
Module Title? Data Base Design 30/6/2007 Entity Relationship Diagrams (ERDs)
Database Systems Lecture # 7 8 th Feb, Conceptual and Logical Design Person buys Product name pricenamessn Conceptual Model: Relational Model: (plus.
MIS 3053 Database Design & Applications The University of Tulsa Professor: Akhilesh Bajaj ER Model Lecture 1 © Akhilesh Bajaj, 2000, 2002, 2003, 2004.
1.  An introduction to data modelling  The purpose of data modelling  Modelling data relationships 2.
MIS 3053 Database Design & Applications The University of Tulsa Professor: Akhilesh Bajaj InClass ER Examples.
4 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel Relationship Degree Indicates number of entities or participants.
Database Design 3: Advanced Data Modeling Concepts CS 320.
Data Modelling Using Entity-Relationship (ER) Model
advanced data modeling
Entity/Relationship Modelling. Entity Relationship Modelling In This Lecture Entity/Relationship models Entities and Attributes Relationships Attributes.
MIS 3053 Database Design & Applications The University of Tulsa Professor: Akhilesh Bajaj ER Model Lecture 2 © Akhilesh Bajaj, 2000, 2002, 2003, 2004,
Entity Relationship Diagram (ERD). Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship.
Lecture 5 Entity Relationship Modeling
ENTITY RELATIONSHIP DIAGRAM. Objectives Define terms related to entity relationship modeling, including entity, entity instances, attribute, relationship.
DATA MODELING AND ENTITY-RELATIONSHIP MODEL II IST 210: Organization of Data IST210 1.
ENTITY-RELATIONSHIP MODELLING. Objectives: How to use Entity–Relationship (ER) modelling in database design. Basic concepts associated with ER model.
Entity Relationship (E-R) Model
Entity/Relationship Modelling
Week 03 – ER Diagram INFOSYS 222.
Let try to identify the conectivity of these entity relationship
Entity-Relationship Model
ER model Ashima Wadhwa.
E-R Diagram (Cont.) Draw ER Diagram for the following scenario:
Database Design Determinacy.
ER Modeling Case Studies
Entity-Relationship Model and Diagrams (continued)
Order Database – ER Diagram
ERD Exercises.
Practice of ER modeling
Entity Relationship Diagrams
IST 318 Database Administration
MIS2502: Data Analytics Relational Data Modeling
Database Modeling using Entity Relationship Model (E-R Model)
Fundamentals of Databases CSU 07203
ER Modeling Case Studies
ER Modeling Case Studies
Functional Dependencies
Lesson Objectives Aims You should know about: 1.3.2:
MIS2502: Data Analytics Relational Data Modeling 2
Database Management system
Database Management system
Some examples of simple business rules:
Presentation transcript:

Case Studies: Data Modeling SEEM3430: Information Systems Analysis and Design

Case 1: Description each lecturer tutors a group of students A university consists of a number of departments. Each department offers several courses. A number of modules make up each course. Students enrol in a particular course and take modules towards the completion that course. Each module is taught by a lecturer from the appropriate department, each lecturer tutors a group of students of and Entity Relationship Modelling

Identify Entities departments. Each department offers several A university consists of a number of departments. Each department offers several courses. A number of modules make up each course. Students enrol in a particular course and take modules towards the completion of that course. Each module is taught by a lecturer from the appropriate department, and each lecturer tutors a group of students Entity Relationship Modelling

Identify Relationships • A university consists of a number of departments. Each department offers several courses. A number of modules make up each course. Students enrol in a particular course and take modules towards the completion of that course. Each module is taught by a lecturer from the appropriate department, and each lecturer tutors a group of students Entity Relationship Modelling

Example - E/R Diagram Entities: Department, Course, Module, Lecturer, Student Course Module Lecturer Student Entity Relationship Modelling

Example - E/R Diagram Each department offers several courses Module Lecturer Student Entity Relationship Modelling

Example - E/R Diagram A number of modules make up each courses Department courses Offers Course Includes Module Lecturer Student Entity Relationship Modelling

Example - E/R Diagram Students enrol in a particular course Department Offers Department Course Includes Module Lecturer Enrols In Student Entity Relationship Modelling

Example - E/R Diagram Students … take modules Department Course Module Offers Department Course Includes Module Lecturer Takes Enrols In Student Entity Relationship Modelling

Example - E/R Diagram Each module is taught by a lecturer Department Offers Course Includes Module Teaches Lecturer Takes Enrols In Student Entity Relationship Modelling

Example - E/R Diagram a lecturer from the appropriate department Offers Department Employs Course Includes Module Teaches Lecturer Takes Enrols In Student Entity Relationship Modelling

Example - E/R Diagram each lecturer tutors a group of students Offers Department Employs Course Includes Module Teaches Lecturer Takes Enrols In Student Tutors Entity Relationship Modelling

Example - E/R Diagram Department Course Module Lecturer Student Offers Employs Course Includes Module Teaches Lecturer Takes Enrols In Student Tutors Entity Relationship Modelling

Entities and Attributes facts about • Sometimes it is hard to tell if something should be an entity • General guidelines • Entities can have attributes but attributes have no smaller parts Entities can have relationships between them, but an attribute belongs to a single entity or • an attribute They both objects or the world represent facts about • • They are both often represented by nouns in descriptions Entity Relationship Modelling

Case 2: Supplier/Product We want to represent information about products in a database. Each product has a description, a price and a supplier. Suppliers have addresses, phone numbers, and names. Each address is made up of a street address, a city, and a postcode. Entity Relationship Modelling

Indentify Entities/Attributes phone number • Entities or attributes: • Products, suppliers, and addresses all have smaller parts so we can make them entities The others have no smaller parts and belong to a single entity • product description price supplier address phone number name street address city postcode • Entity Relationship Modelling

Example - E/R Diagram Product Supplier Address Price Description Street address Name Supplier Address City Phone number Postcode Entity Relationship Modelling

Identify Relationships supplier address single supplier but address • Each product has supplier a • Each supplier has an address • Each product has a single supplier but • A supplier has a single address It does not seem sensible for two there is nothing stop a supplier supplying many products A many to one relationship to • different suppliers have the same address A one to one relationship to • • Entity Relationship Modelling

Example - E/R Diagram Product Supplier Address Price Description Has A Street address Name Supplier Has A Address City Phone number Postcode Entity Relationship Modelling

One to One Relationships between A and B • Some relationships • Example - the supplier-address relationship between entities, and B, might be redundant if A • Is one to one Every supplier has address We don’t need addresses that are • It is a 1:1 relationship between A and B an • Every A is related B and every B is related to an A to a • not related to a supplier Entity Relationship Modelling

Redundant Relationships a entity • We can merge the two entities x two entities take part in redundant relationship that a b A B y c z together • They become a single entity • The new entity has all the attributes of the old one a x b AB y c z Entity Relationship Modelling

Example - E/R Diagram Product Supplier Price Description Has A Name City Phone number Postcode Street address Entity Relationship Modelling

Tips: E/R Diagrams diagram and then the relationships • From a description the requirements identify the of • Draw the E/R diagram and then • Look at one to one relationships as they might be redundant Look at many to many relationships as they might need to be split into two one to many links • Entities Attributes Relationships Cardinality ratios the relationships • of Entity Relationship Modelling